Lines Matching refs:response
71 ->then(function (ResponseInterface $response) use ($request, $options) {
72 return $this->checkRedirect($request, $options, $response);
79 * @param ResponseInterface $response
86 ResponseInterface $response argument
88 if (substr($response->getStatusCode(), 0, 1) != '3'
89 || !$response->hasHeader('Location')
91 return $response;
95 $nextRequest = $this->modifyRequest($request, $options, $response);
101 $response,
114 $response->getStatusCode()
129 function (ResponseInterface $response) use ($uri, $statusCode) {
133 $historyHeader = $response->getHeader(self::HISTORY_HEADER);
134 $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
137 return $response->withHeader(self::HISTORY_HEADER, $historyHeader)
169 * @param ResponseInterface $response
176 ResponseInterface $response argument
185 $statusCode = $response->getStatusCode();
193 $uri = $this->redirectUri($request, $response, $protocols);
225 * @param ResponseInterface $response
232 ResponseInterface $response, argument
237 new Psr7\Uri($response->getHeaderLine('Location'))
249 $response