Cake\Http\ResponseEmitter::emitBody PHP Метод

emitBody() защищенный Метод

Emit the message body.
protected emitBody ( Psr\Http\Message\ResponseInterface $response, integer $maxBufferLength ) : void
$response Psr\Http\Message\ResponseInterface The response to emit
$maxBufferLength integer The chunk size to emit
Результат void
    protected function emitBody(ResponseInterface $response, $maxBufferLength)
    {
        $body = $response->getBody();
        if (!$body->isSeekable()) {
            echo $body;
            return;
        }
        $body->rewind();
        while (!$body->eof()) {
            echo $body->read($maxBufferLength);
        }
    }