[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

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

(no description)

File Size: 123 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()
  prepare()
  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() method
can also be used if needed.

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

param: mixed $callback A valid PHP callback
param: int   $status   The response status code
param: array $headers  An array of response headers

create($callback = null, $status = 200, $headers = array()   X-Ref
{@inheritdoc}


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

param: mixed $callback A valid PHP callback

prepare(Request $request)   X-Ref
{@inheritdoc}


sendContent()   X-Ref
{@inheritdoc}

This method only sends the content once.

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


getContent()   X-Ref
{@inheritdoc}

return: false



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1