private function collectRequest(GuzzleRequestInterface $request)
    {
        $body = null;
        if ($request instanceof EntityEnclosingRequestInterface) {
            $body = (string) $request->getBody();
        }

        return array(
            'headers' => $request->getHeaders(),
            'method'  => $request->getMethod(),
            'scheme'  => $request->getScheme(),
            'host'    => $request->getHost(),
	    'port'    => $request->getPort(),
            'path'    => $request->getPath(),
            'query'   => $request->getQuery(),
            'body'    => $body
        );
    }
private function collectRequest(GuzzleRequestInterface $request)
    {
        $body = null;
        if ($request instanceof EntityEnclosingRequestInterface) {
            $body = (string) $request->getBody();
        }

        return array(
            'headers' => $request->getHeaders(),
            'method'  => $request->getMethod(),
            'scheme'  => $request->getScheme(),
            'host'    => $request->getHost(),
	    'port'    => $request->getPort(),
            'path'    => $request->getPath(),
            'query'   => $request->getQuery(),
            'body'    => $body
        );
    }
private function collectRequest ( GuzzleRequestInterface $ request ) { $ body = null ; if ( $ request instanceof EntityEnclosingRequestInterface ) { $ body = ( string ) $ request -> getBody ( ) ; } return array ( 'headers' => $ request -> getHeaders ( ) , 'method' => $ request -> getMethod ( ) , 'scheme' => $ request -> getScheme ( ) , 'host' => $ request -> getHost ( ) , 'port' => $ request -> getPort ( ) , 'path' => $ request -> getPath ( ) , 'query' => $ request -> getQuery ( ) , 'body' => $ body ) ; }
Collect & sanitize data about a Guzzle request

@param Guzzle\Http\Message\RequestInterface $request

@return array
Collect & sanitize data about a Guzzle request