Lines Matching refs:response
83 $response = $httpHandler($request);
90 $response = $e->getResponse();
92 if ($response instanceof \GuzzleHttp\Message\ResponseInterface) {
93 $response = new Response(
94 $response->getStatusCode(),
95 $response->getHeaders() ?: [],
96 $response->getBody(),
97 $response->getProtocolVersion(),
98 $response->getReasonPhrase()
103 return self::decodeHttpResponse($response, $request, $expectedClass);
110 * @param RequestInterface $response The http response to be decoded.
111 * @param ResponseInterface $response
116 ResponseInterface $response, argument
120 $code = $response->getStatusCode();
125 $body = (string) $response->getBody();
133 $body = self::decodeBody($response, $request);
141 return $response;
144 private static function decodeBody(ResponseInterface $response, RequestInterface $request = null) argument
151 return (string) $response->getBody();