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

emitBody() private method

Loops through the output buffer, flushing each, before emitting the response body using echo().
private emitBody ( Psr\Http\Message\ResponseInterface $response, $maxBufferLevel )
$response Psr\Http\Message\ResponseInterface
    private function emitBody(ResponseInterface $response, $maxBufferLevel)
    {
        if (null === $maxBufferLevel) {
            $maxBufferLevel = ob_get_level();
        }
        while (ob_get_level() > $maxBufferLevel) {
            ob_end_flush();
        }
        echo $response->getBody();
    }