PHP Class Zend\Diactoros\Response\SapiEmitter

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

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 ) Emit the message body.

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.