Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (callable $callback=null, $status=200, $headers=array()) | |
__construct (callable $callback=null, int $status=200, array $headers=[]) | |
getContent () | |
getContent () | |
sendContent () | |
sendContent () | |
sendHeaders () | |
sendHeaders () | |
setCallback (callable $callback) | |
setCallback (callable $callback) | |
setContent ($content) | |
setContent ($content) | |
![]() | |
__clone () | |
__clone () | |
__construct ($content='', $status=200, $headers=array()) | |
__construct ($content='', int $status=200, array $headers=[]) | |
__toString () | |
__toString () | |
expire () | |
expire () | |
getAge () | |
getAge () | |
getCharset () | |
getCharset () | |
getDate () | |
getDate () | |
getEtag () | |
getEtag () | |
getExpires () | |
getExpires () | |
getLastModified () | |
getLastModified () | |
getMaxAge () | |
getMaxAge () | |
getProtocolVersion () | |
getProtocolVersion () | |
getStatusCode () | |
getStatusCode () | |
getTtl () | |
getTtl () | |
getVary () | |
getVary () | |
hasVary () | |
hasVary () | |
isCacheable () | |
isCacheable () | |
isClientError () | |
isClientError () | |
isEmpty () | |
isEmpty () | |
isForbidden () | |
isForbidden () | |
isFresh () | |
isFresh () | |
isImmutable () | |
isInformational () | |
isInformational () | |
isInvalid () | |
isInvalid () | |
isNotFound () | |
isNotFound () | |
isNotModified (Request $request) | |
isNotModified (Request $request) | |
isOk () | |
isOk () | |
isRedirect ($location=null) | |
isRedirect (string $location=null) | |
isRedirection () | |
isRedirection () | |
isServerError () | |
isServerError () | |
isSuccessful () | |
isSuccessful () | |
isValidateable () | |
isValidateable () | |
mustRevalidate () | |
mustRevalidate () | |
prepare (Request $request) | |
prepare (Request $request) | |
send () | |
send () | |
setCache (array $options) | |
setCache (array $options) | |
setCharset ($charset) | |
setCharset (string $charset) | |
setClientTtl ($seconds) | |
setClientTtl (int $seconds) | |
setDate (\DateTime $date) | |
setDate (\DateTimeInterface $date) | |
setEtag ($etag=null, $weak=false) | |
setEtag (string $etag=null, bool $weak=false) | |
setExpires (\DateTime $date=null) | |
setExpires (\DateTimeInterface $date=null) | |
setImmutable (bool $immutable=true) | |
setLastModified (\DateTime $date=null) | |
setLastModified (\DateTimeInterface $date=null) | |
setMaxAge ($value) | |
setMaxAge (int $value) | |
setNotModified () | |
setNotModified () | |
setPrivate () | |
setPrivate () | |
setProtocolVersion ($version) | |
setProtocolVersion (string $version) | |
setPublic () | |
setPublic () | |
setSharedMaxAge ($value) | |
setSharedMaxAge (int $value) | |
setStatusCode ($code, $text=null) | |
setStatusCode (int $code, $text=null) | |
setTtl ($seconds) | |
setTtl (int $seconds) | |
setVary ($headers, $replace=true) | |
setVary ($headers, bool $replace=true) | |
Static Public Member Functions | |
static | create ($callback=null, $status=200, $headers=[]) |
static | create ($callback=null, $status=200, $headers=array()) |
![]() | |
static | closeOutputBuffers ($targetLevel, $flush) |
static | closeOutputBuffers (int $targetLevel, bool $flush) |
Protected Attributes | |
$callback | |
$streamed | |
![]() | |
$charset | |
$content | |
$statusCode | |
$statusText | |
$version | |
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.
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() function can also be used if needed.
Definition at line 27 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
Symfony\Component\HttpFoundation\StreamedResponse::__construct | ( | callable | $callback = null , |
$status = 200 , |
|||
$headers = array() |
|||
) |
Constructor.
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 |
Definition at line 40 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\StreamedResponse\$callback, Symfony\Component\HttpFoundation\Response\$headers, and Symfony\Component\HttpFoundation\StreamedResponse\setCallback().
Symfony\Component\HttpFoundation\StreamedResponse::__construct | ( | callable | $callback = null , |
int | $status = 200 , |
||
array | $headers = [] |
||
) |
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 |
Definition at line 38 of file vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\StreamedResponse\$callback, Symfony\Component\HttpFoundation\Response\$headers, and Symfony\Component\HttpFoundation\StreamedResponse\setCallback().
|
static |
Factory method for chainability.
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 |
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 58 of file vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\StreamedResponse\$callback, and Symfony\Component\HttpFoundation\Response\$headers.
|
static |
Factory method for chainability.
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 |
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 60 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\StreamedResponse\$callback, and Symfony\Component\HttpFoundation\Response\$headers.
Referenced by Symfony\Component\HttpFoundation\Tests\StreamedResponseTest\testCreate().
Symfony\Component\HttpFoundation\StreamedResponse::getContent | ( | ) |
{Gets the current response content.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 128 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
Symfony\Component\HttpFoundation\StreamedResponse::getContent | ( | ) |
{Gets the current response content.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 138 of file vendor/symfony/http-foundation/StreamedResponse.php.
Symfony\Component\HttpFoundation\StreamedResponse::sendContent | ( | ) |
{Sends content for the current web response.
This method only sends the content once.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 96 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
Symfony\Component\HttpFoundation\StreamedResponse::sendContent | ( | ) |
{Sends content for the current web response.
This method only sends the content once.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 100 of file vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\StreamedResponse\$callback.
Symfony\Component\HttpFoundation\StreamedResponse::sendHeaders | ( | ) |
{Sends HTTP headers.
This method only sends the headers once.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 80 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
Symfony\Component\HttpFoundation\StreamedResponse::sendHeaders | ( | ) |
{Sends HTTP headers.
This method only sends the headers once.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 82 of file vendor/symfony/http-foundation/StreamedResponse.php.
Symfony\Component\HttpFoundation\StreamedResponse::setCallback | ( | callable | $callback | ) |
Sets the PHP callback associated with this Response.
Definition at line 68 of file vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\StreamedResponse\$callback.
Symfony\Component\HttpFoundation\StreamedResponse::setCallback | ( | callable | $callback | ) |
Sets the PHP callback associated with this Response.
callable | $callback | A valid PHP callback |
Definition at line 70 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\StreamedResponse\$callback.
Referenced by Symfony\Component\HttpFoundation\StreamedResponse\__construct().
Symfony\Component\HttpFoundation\StreamedResponse::setContent | ( | $content | ) |
{Sets the response content.Valid types are strings, numbers, null, and objects that implement a __toString() method.
mixed | $content | Content that can be cast to string |
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 116 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\Response\$content.
Symfony\Component\HttpFoundation\StreamedResponse::setContent | ( | $content | ) |
{Sets the response content.Valid types are strings, numbers, null, and objects that implement a __toString() method.
mixed | $content | Content that can be cast to string |
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 124 of file vendor/symfony/http-foundation/StreamedResponse.php.
References Symfony\Component\HttpFoundation\Response\$content.
|
protected |
Definition at line 29 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.
Referenced by Symfony\Component\HttpFoundation\StreamedResponse\__construct(), Symfony\Component\HttpFoundation\StreamedResponse\create(), Symfony\Component\HttpFoundation\StreamedResponse\sendContent(), and Symfony\Component\HttpFoundation\StreamedResponse\setCallback().
|
protected |
Definition at line 30 of file lib/vendor/symfony/http-foundation/StreamedResponse.php.