StreamOutput
class StreamOutput extends Output (View source)
The StreamOutput class.
Properties
string | $headerSent | Property headerSent. | from Output |
Methods
Method to send the application response to the client. All headers will be sent prior to the main application output data.
Send body as response.
Method to send a header to the client. We wrap header() function with this method for testing reason.
Method to get property MaxBufferLength
Method to set property maxBufferLength
Method to get property Delay
Method to set property delay
Details
at line line 45
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.
at line line 59
string
sendBody(ResponseInterface $response)
Send body as response.
Output
header(string $string, boolean $replace = true, integer $code = null)
Method to send a header to the client. We wrap header() function with this method for testing reason.
Output
sendHeaders(ResponseInterface $response)
Send all response headers.
at line line 159
int
getMaxBufferLength()
Method to get property MaxBufferLength
at line line 171
StreamOutput
setMaxBufferLength(int $maxBufferLength)
Method to set property maxBufferLength
at line line 183
int
getDelay()
Method to get property Delay
at line line 195
StreamOutput
setDelay(int $delay)
Method to set property delay