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 : ''));
    }