src/Client.php
private function createRequest(RequestInterface $request)
    {
        $options = [
            'exceptions' => false,
            'allow_redirects' => false,
        ];

        $options['version'] = $request->getProtocolVersion();
        $options['headers'] = $request->getHeaders();
        $body = (string) $request->getBody();
        $options['body'] = '' === $body ? null : $body;

        return $this->client->createRequest(
            $request->getMethod(),
            (string) $request->getUri(),
            $options
        );
    }
private function createRequest(RequestInterface $request)
    {
        $options = [
            'exceptions' => false,
            'allow_redirects' => false,
        ];

        $options['version'] = $request->getProtocolVersion();
        $options['headers'] = $request->getHeaders();
        $body = (string) $request->getBody();
        $options['body'] = '' === $body ? null : $body;

        return $this->client->createRequest(
            $request->getMethod(),
            (string) $request->getUri(),
            $options
        );
    }
private function createRequest ( RequestInterface $ request ) { $ options = [ 'exceptions' => false , 'allow_redirects' => false , ] ; $ options [ 'version' ] = $ request -> getProtocolVersion ( ) ; $ options [ 'headers' ] = $ request -> getHeaders ( ) ; $ body = ( string ) $ request -> getBody ( ) ; $ options [ 'body' ] = '' === $ body ? null : $ body ; return $ this -> client -> createRequest ( $ request -> getMethod ( ) , ( string ) $ request -> getUri ( ) , $ options ) ; }
Converts a PSR request into a Guzzle request.

@param RequestInterface $request

@return GuzzleRequest
Converts a PSR request into a Guzzle request .