Class StreamedResponse
StreamedResponse represents a streamed HTTP response.
A StreamedResponse uses a callback for its content.
The callback should use the standard PHP functions like echo to stream the response back to the client. The flush() method can also be used if needed.
- Symfony\Component\HttpFoundation\Response
- Symfony\Component\HttpFoundation\StreamedResponse
Namespace: Symfony\Component\HttpFoundation
Author: Fabien Potencier <fabien@symfony.com>
See: flush()
Api
Located at laravel/vendor/Symfony/Component/HttpFoundation/StreamedResponse.php
Author: Fabien Potencier <fabien@symfony.com>
See: flush()
Api
Located at laravel/vendor/Symfony/Component/HttpFoundation/StreamedResponse.php
public
|
#
__construct( mixed $callback = null, integer $status = 200, array $headers = array() )
Constructor. |
public static
|
|
public
|
|
public
|
#
prepare(
Prepares the Response before it is sent to the client. |
public
|
|
public
|
|
public
false
|
protected
mixed
|
$callback |
|
|
protected
mixed
|
$streamed |
|
$charset,
$content,
$headers,
$statusCode,
$statusText,
$statusTexts,
$version
|