public function toString()
    {
        $result = '';
        if ($this->hasHeaders()) {
            $headers = $this->composeHeaderLines();
            $result .= implode("\n", $headers);
        }

        $content = $this->getContent();
        if ($content !== null) {
            $result .= "\n\n" . $content;
        }

        return $result;
    }
public function toString()
    {
        $result = '';
        if ($this->hasHeaders()) {
            $headers = $this->composeHeaderLines();
            $result .= implode("\n", $headers);
        }

        $content = $this->getContent();
        if ($content !== null) {
            $result .= "\n\n" . $content;
        }

        return $result;
    }
public function toString ( ) { $ result = '' ; if ( $ this -> hasHeaders ( ) ) { $ headers = $ this -> composeHeaderLines ( ) ; $ result .= implode ( "\n" , $ headers ) ; } $ content = $ this -> getContent ( ) ; if ( $ content !== null ) { $ result .= "\n\n" . $ content ; } return $ result ; }
Returns string representation of this HTTP message.
@return string the string representation of this HTTP message.
Returns string representation of this HTTP message .