azure-storage-common/src/Common/Internal/Serialization/MessageSerializer.php
private static function serializeRequest($request)
    {
        $headers = $request->getHeaders();
        $version = $request->getProtocolVersion();
        $uri     = $request->getUri();
        $method  = $request->getMethod();

        $resultString = "Request:\n";
        $resultString .= "URI: {$uri}\nHTTP Version: {$version}\nMethod: {$method}\n";
        $resultString .= self::serializeHeaders($headers);

        return $resultString;
    }
private static function serializeRequest($request)
    {
        $headers = $request->getHeaders();
        $version = $request->getProtocolVersion();
        $uri     = $request->getUri();
        $method  = $request->getMethod();

        $resultString = "Request:\n";
        $resultString .= "URI: {$uri}\nHTTP Version: {$version}\nMethod: {$method}\n";
        $resultString .= self::serializeHeaders($headers);

        return $resultString;
    }
Serialize the request type that implemented the following methods:
getHeaders()
getProtocolVersion()
getUri()
getMethod()

@param  object $request The request to be serialized.

@return string