PHP Class Phly\Http\Response\SapiEmitter

Inheritance: implements Phly\Http\Response\EmitterInterface
Datei anzeigen Open project: phly/http

Public Methods

Method Description
emit ( Psr\Http\Message\ResponseInterface $response, null | integer $maxBufferLevel = null ) Emits a response for a PHP SAPI environment.

Private Methods

Method Description
emitBody ( Psr\Http\Message\ResponseInterface $response, $maxBufferLevel ) Emit the message body.
emitHeaders ( Psr\Http\Message\ResponseInterface $response ) Emit response headers.
emitStatusLine ( Psr\Http\Message\ResponseInterface $response ) Emit the status line.
filterHeader ( string $header ) : string Filter a header name to wordcase

Method Details

emit() public method

Emits the status line and headers via the header() function, and the body content via the output buffer.
public emit ( Psr\Http\Message\ResponseInterface $response, null | integer $maxBufferLevel = null )
$response Psr\Http\Message\ResponseInterface
$maxBufferLevel null | integer Maximum output buffering level to unwrap.