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 StreamedResponse.php
Author: Fabien Potencier fabien@symfony.com
See: flush()
Api
Located at StreamedResponse.php
public
|
#
__construct( callable|null $callback = null, integer $status = 200, array $headers = array() )
Constructor. |
public static
|
|
public
|
|
public
|
|
public
|
|
public
false
|
protected
|
$callback
|
|
protected
|
$streamed
|
$charset,
$content,
$headers,
$statusCode,
$statusText,
$statusTexts,
$version
|