BaseEmitter
- Full name:
\Qubus\Http\Emitter\BaseEmitter
- This class implements:
\Qubus\Http\Emitter\Emitter
- This class is an Abstract class
Methods
emit
Emit a response.
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$response | \Psr\Http\Message\ResponseInterface |
Inherited methods
assertNoPreviousOutput
Assert either that no headers have been sent or the output buffer contains no content.
emitStatusLine
Emit the status line.
Emits the status line using the protocol version and status code from the response; if a reason phrase is available, it, too, is emitted.
Parameters:
Parameter | Type | Description |
---|---|---|
$response | \Psr\Http\Message\ResponseInterface |
emitHeaders
Emit response headers.
Loops through each header, emitting each; if the header value is an array with multiple values, ensures that each is sent in such a way as to create aggregate headers (instead of replace the previous).
Parameters:
Parameter | Type | Description |
---|---|---|
$response | \Psr\Http\Message\ResponseInterface |
normalizeHeaderName
Normalize a header name
Normalized header will be in the following format: Example-Header-Name
Parameters:
Parameter | Type | Description |
---|---|---|
$headerName | string |
header
Parameters:
Parameter | Type | Description |
---|---|---|
$headerName | string | |
$replace | bool | |
$statusCode | int |
closeConnection
Automatically generated on 2025-10-13