[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/ -> StreamedResponse.php (summary)

(no description)

File Size: 139 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

StreamedResponse:: (7 methods):
  __construct()
  create()
  setCallback()
  sendHeaders()
  sendContent()
  setContent()
  getContent()


Class: StreamedResponse  - X-Ref

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.

__construct($callback = null, $status = 200, $headers = array()   X-Ref

param: callable|null $callback A valid PHP callback or null to set it later
param: int           $status   The response status code
param: array         $headers  An array of response headers

create($callback = null, $status = 200, $headers = array()   X-Ref
Factory method for chainability.

param: callable|null $callback A valid PHP callback or null to set it later
param: int           $status   The response status code
param: array         $headers  An array of response headers
return: static

setCallback($callback)   X-Ref
Sets the PHP callback associated with this Response.

param: callable $callback A valid PHP callback

sendHeaders()   X-Ref
{@inheritdoc}

This method only sends the headers once.

sendContent()   X-Ref
{@inheritdoc}

This method only sends the content once.

setContent($content)   X-Ref
{@inheritdoc}


getContent()   X-Ref
{@inheritdoc}

return: false



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1