function StreamedResponse::__construct
Parameters
int $status The HTTP status code (200 "OK" by default):
Overrides Response::__construct
2 calls to StreamedResponse::__construct()
- StreamedJsonResponse::__construct in vendor/
symfony/ http-foundation/ StreamedJsonResponse.php - StreamedJsonResponse::__construct in vendor/
symfony/ http-foundation/ StreamedJsonResponse.php
1 method overrides StreamedResponse::__construct()
- StreamedJsonResponse::__construct in vendor/
symfony/ http-foundation/ StreamedJsonResponse.php
File
-
vendor/
symfony/ http-foundation/ StreamedResponse.php, line 37
Class
- StreamedResponse
- StreamedResponse represents a streamed HTTP response.
Namespace
Symfony\Component\HttpFoundationCode
public function __construct(?callable $callback = null, int $status = 200, array $headers = []) {
parent::__construct(null, $status, $headers);
if (null !== $callback) {
$this->setCallback($callback);
}
$this->streamed = false;
$this->headersSent = false;
}