src/Client.php
private function createResponse(GuzzleResponse $response)
    {
        $body = $response->getBody();

        return $this->responseFactory->createResponse(
            $response->getStatusCode(),
            null,
            $response->getHeaders(),
            isset($body) ? $body->detach() : null,
            $response->getProtocolVersion()
        );
    }
private function createResponse(GuzzleResponse $response)
    {
        $body = $response->getBody();

        return $this->responseFactory->createResponse(
            $response->getStatusCode(),
            null,
            $response->getHeaders(),
            isset($body) ? $body->detach() : null,
            $response->getProtocolVersion()
        );
    }
private function createResponse ( GuzzleResponse $ response ) { $ body = $ response -> getBody ( ) ; return $ this -> responseFactory -> createResponse ( $ response -> getStatusCode ( ) , null , $ response -> getHeaders ( ) , isset ( $ body ) ? $ body -> detach ( ) : null , $ response -> getProtocolVersion ( ) ) ; }
Converts a Guzzle response into a PSR response.

@param GuzzleResponse $response

@return ResponseInterface
Converts a Guzzle response into a PSR response .