public function StreamedResponse::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/StreamedResponse.php \Symfony\Component\HttpFoundation\StreamedResponse::__construct()
Constructor.
Parameters
callable|null $callback A valid PHP callback or null to set it later:
int $status The response status code:
array $headers An array of response headers:
Overrides Response::__construct
File
- vendor/
symfony/ http-foundation/ StreamedResponse.php, line 39
Class
- StreamedResponse
- StreamedResponse represents a streamed HTTP response.
Namespace
Symfony\Component\HttpFoundationCode
public function __construct($callback = null, $status = 200, $headers = array()) {
parent::__construct(null, $status, $headers);
if (null !== $callback) {
$this
->setCallback($callback);
}
$this->streamed = false;
}