src/_legacyCode/HttpMessage.php
protected function getHeadersAsText()
    {
        $headers = '';

        foreach ($this->headers as $header) {
            foreach ($header[1] as $headerValue) {
                $headers .= $header[0] . ': ' . $headerValue . "\r\n";
            }
        }

        return $headers;
    }
protected function getHeadersAsText()
    {
        $headers = '';

        foreach ($this->headers as $header) {
            foreach ($header[1] as $headerValue) {
                $headers .= $header[0] . ': ' . $headerValue . "\r\n";
            }
        }

        return $headers;
    }
protected function getHeadersAsText ( ) { $ headers = '' ; foreach ( $ this -> headers as $ header ) { foreach ( $ header [ 1 ] as $ headerValue ) { $ headers .= $ header [ 0 ] . ': ' . $ headerValue . "\r\n" ; } } return $ headers ; }
Returns all headers in text form to embed into HTTP message.

@return string
Returns all headers in text form to embed into HTTP message .