Cake\Http\ResponseEmitter::emitStatusLine PHP 메소드

emitStatusLine() 보호된 메소드

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