class Stream implements ResponseSenderInterface

Stream response.

Properties

protected bool $isCGI Is PHP running as a CGI program?
protected Closure $stream Stream.

Methods

__construct(Closure $stream)

Constructor.

flush(string $chunk = null, bool $flushEmpty = false)

Flushes a chunck of data.

flow()

Sends the stream.

send(Request $request, Response $response)

Sends the response.

Details

at line 46
__construct(Closure $stream)

Constructor.

Parameters

Closure $stream Stream

at line 57
flush(string $chunk = null, bool $flushEmpty = false)

Flushes a chunck of data.

Parameters

string $chunk Chunck of data to flush
bool $flushEmpty Flush empty chunk?

at line 82
protected flow()

Sends the stream.

at line 102
send(Request $request, Response $response)

Sends the response.

Parameters

Request $request Request instance
Response $response Response instance