src/Http/Response.php
public function dump()
    {
        $this->_setContentLength();
        header($this->line());
        $headers = $this->headers();
        foreach ($headers as $header) {
            header($header->to('header'));
        }
        if ($headers['Transfer-Encoding']->value() === 'chunked') {
            return;
        }
        if ($this->_stream->isSeekable()) {
            $this->_stream->rewind();
        }
        while (!$this->_stream->eof()) {
            echo $this->_stream->read();
            if (connection_status() !== CONNECTION_NORMAL) {
                break;
            }
        }
    }
public function dump()
    {
        $this->_setContentLength();
        header($this->line());
        $headers = $this->headers();
        foreach ($headers as $header) {
            header($header->to('header'));
        }
        if ($headers['Transfer-Encoding']->value() === 'chunked') {
            return;
        }
        if ($this->_stream->isSeekable()) {
            $this->_stream->rewind();
        }
        while (!$this->_stream->eof()) {
            echo $this->_stream->read();
            if (connection_status() !== CONNECTION_NORMAL) {
                break;
            }
        }
    }
public function dump ( ) { $ this -> _setContentLength ( ) ; header ( $ this -> line ( ) ) ; $ headers = $ this -> headers ( ) ; foreach ( $ headers as $ header ) { header ( $ header -> to ( 'header' ) ) ; } if ( $ headers [ 'Transfer-Encoding' ] -> value ( ) === 'chunked' ) { return ; } if ( $ this -> _stream -> isSeekable ( ) ) { $ this -> _stream -> rewind ( ) ; } while ( ! $ this -> _stream -> eof ( ) ) { echo $ this -> _stream -> read ( ) ; if ( connection_status ( ) !== CONNECTION_NORMAL ) { break ; } } }
Renders a response by writing headers and output.

@see https://bugs.php.net/bug.php?id=18029
Renders a response by writing headers and output .