[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch

title

Body

[close]

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

(no description)

File Size: 144 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(callable $callback = null, $status = 200, $headers = [])   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 = [])   X-Ref
Factory method for chainability.

return: static
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

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

return: $this
param: callable $callback A valid PHP callback

sendHeaders()   X-Ref
{@inheritdoc}

This method only sends the headers once.

return: $this

sendContent()   X-Ref
{@inheritdoc}

This method only sends the content once.

return: $this

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

return: $this

getContent()   X-Ref
{@inheritdoc}




Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1