Phly\Http\Response\SapiEmitter::emitStatusLine PHP Method

emitStatusLine() private method

Emits the status line using the protocol version and status code from the response; if a reason phrase is availble, it, too, is emitted.
private emitStatusLine ( Psr\Http\Message\ResponseInterface $response )
$response Psr\Http\Message\ResponseInterface
    private function emitStatusLine(ResponseInterface $response)
    {
        $reasonPhrase = $response->getReasonPhrase();
        header(sprintf('HTTP/%s %d%s', $response->getProtocolVersion(), $response->getStatusCode(), $reasonPhrase ? ' ' . $reasonPhrase : ''));
    }