function Response::__construct
Same name in this branch
- 11.1.x vendor/composer/composer/src/Composer/Util/Http/Response.php \Composer\Util\Http\Response::__construct()
- 11.1.x vendor/guzzlehttp/psr7/src/Response.php \GuzzleHttp\Psr7\Response::__construct()
- 11.1.x vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::__construct()
The headers array is a set of key/value pairs. If a header is present multiple times then the value is an array of all the values.
Parameters
string $content The content of the response:
int $status The response status code (302 "Found" by default):
array $headers An array of headers:
File
-
vendor/
symfony/ browser-kit/ Response.php, line 31
Class
- Response
- @author Fabien Potencier <fabien@symfony.com>
Namespace
Symfony\Component\BrowserKitCode
public function __construct(string $content = '', int $status = 200, array $headers = []) {
}