class NoHeaderOutput extends Output (View source)

The NoHeaderOutput class.

Properties

string $headerSent Property headerSent. from Output

Methods

ResponseInterface
respond(ResponseInterface $response, boolean $returnBody = false)

Method to send the application response to the client. All headers will be sent prior to the main application output data.

from Output
string
sendBody(ResponseInterface $response)

Method to send the application response to the client. All headers will be sent prior to the main application output data.

from Output
header(string $string, boolean $replace = true, integer $code = null)

Method to override parent header() and do nothing.

sendHeaders(ResponseInterface $response)

Send all response headers.

from Output
void
sendStatusLine(ResponseInterface $response)

Send HTTP status line.

from Output
bool
headersSent()

checkHeaderSent

from Output

Details

in Output at line line 40
ResponseInterface respond(ResponseInterface $response, boolean $returnBody = false)

Method to send the application response to the client. All headers will be sent prior to the main application output data.

Parameters

ResponseInterface $response Respond body output.
boolean $returnBody Return body as string.

Return Value

ResponseInterface

in Output at line line 66
string sendBody(ResponseInterface $response)

Method to send the application response to the client. All headers will be sent prior to the main application output data.

Parameters

ResponseInterface $response Emmit string to respond.

Return Value

string

at line line 29
Output header(string $string, boolean $replace = true, integer $code = null)

Method to override parent header() and do nothing.

Parameters

string $string The header string.
boolean $replace The optional replace parameter indicates whether the header should replace a previous similar header, or add a second header of the same type.
integer $code Forces the HTTP response code to the specified value. Note that this parameter only has an effect if the string is not empty.

Return Value

Output Return self to support chaining.

in Output at line line 98
Output sendHeaders(ResponseInterface $response)

Send all response headers.

Parameters

ResponseInterface $response Response object to contain headers.

Return Value

Output Instance of $this to allow chaining.

in Output at line line 123
void sendStatusLine(ResponseInterface $response)

Send HTTP status line.

Parameters

ResponseInterface $response Response object to contain status code and protocol version.

Return Value

void

in Output at line line 137
bool headersSent()

checkHeaderSent

Return Value

bool