You are here

public function Response::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::__construct()
  2. 8 vendor/symfony/browser-kit/Response.php \Symfony\Component\BrowserKit\Response::__construct()
  3. 8 vendor/zendframework/zend-diactoros/src/Response.php \Zend\Diactoros\Response::__construct()
  4. 8 vendor/guzzlehttp/psr7/src/Response.php \GuzzleHttp\Psr7\Response::__construct()
  5. 8 vendor/jcalderonzumba/gastonjs/src/NetworkTraffic/Response.php \Zumba\GastonJS\NetworkTraffic\Response::__construct()
  6. 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Response.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Response::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Response.php \Symfony\Component\BrowserKit\Response::__construct()

Constructor.

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:

array $headers An array of headers:

File

vendor/symfony/browser-kit/Response.php, line 35

Class

Response
Response object.

Namespace

Symfony\Component\BrowserKit

Code

public function __construct($content = '', $status = 200, array $headers = array()) {
  $this->content = $content;
  $this->status = $status;
  $this->headers = $headers;
}