PHP Class Zend\Diactoros\Response\SapiStreamEmitter

Inheritance: implements Zend\Diactoros\Response\EmitterInterface, use trait SapiEmitterTrait
Datei anzeigen Open project: zendframework/zend-diactoros Class Usage Examples

Public Methods

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

Private Methods

Method Description
emitBody ( Psr\Http\Message\ResponseInterface $response, integer $maxBufferLength ) Emit the message body.
emitBodyRange ( array $range, Psr\Http\Message\ResponseInterface $response, integer $maxBufferLength ) Emit a range of the message body.
parseContentRange ( string $header ) : false | array Parse content-range header http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16

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, integer $maxBufferLength = 8192 )
$response Psr\Http\Message\ResponseInterface
$maxBufferLength integer Maximum output buffering size for each iteration