Stream
class Stream implements ResponseSenderInterface
Stream response.
Properties
protected bool | $isCGI | Is PHP running as a CGI program? | |
protected Closure | $stream | Stream. | |
protected string|null | $contentType | Content type. | |
protected string|null | $charset | Character set. |
Methods
__construct(Closure $stream, string|null $contentType = null, string|null $charset = null)
Constructor.
setCharset(string $charset)
Sets the status code.
flush(string|null $chunk, bool $flushEmpty = false)
Flushes a chunck of data.
flow()
Sends the stream.
Details
at line 62
__construct(Closure $stream, string|null $contentType = null, string|null $charset = null)
Constructor.
at line 77
Stream
setType(string $contentType)
Set the content type.
at line 90
Stream
setCharset(string $charset)
Sets the status code.
at line 103
flush(string|null $chunk, bool $flushEmpty = false)
Flushes a chunck of data.
at line 128
protected
flow()
Sends the stream.