Bitpay\Client\Request::__toString PHP Method

__toString() public method

Converts this request into a standard HTTP/1.1 message to be sent over the wire
public __toString ( ) : string
return string
    public function __toString()
    {
        $request = sprintf("%s %s HTTP/1.1\r\n", $this->getMethod(), $this->getUriWithPort());
        $request .= $this->getHeadersAsString();
        $request .= $this->getBody();
        return trim($request);
    }