getHeadersAsString example

return $str;
    }

    /** * Get the entire response as string * * @param string $br Line breaks (eg. "\n", "\r\n", "<br />") * @return string */
    public function asString($br = "\n")
    {
        return $this->getHeadersAsString(true, $br) . $br . $this->getRawBody();
    }

    /** * Implements magic __toString() * * @return string */
    public function __toString()
    {
        return $this->asString();
    }

    
Home | Imprint | This part of the site doesn't use cookies.