HISTORY_HEADER
HISTORY_HEADER = 'X-Guzzle-Redirect-History'
Request redirect middleware.
Apply this middleware like other middleware using {@see \GuzzleHttp\Middleware::redirect()}.
$defaultSettings : array
checkRedirect(\Psr\Http\Message\RequestInterface $request, array $options, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface|\GuzzleHttp\Promise\PromiseInterface
\Psr\Http\Message\RequestInterface | $request | |
array | $options | |
\Psr\Http\Message\ResponseInterface | $response |
modifyRequest(\Psr\Http\Message\RequestInterface $request, array $options, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\RequestInterface
\Psr\Http\Message\RequestInterface | $request | |
array | $options | |
\Psr\Http\Message\ResponseInterface | $response |
withTracking(\GuzzleHttp\Promise\PromiseInterface $promise, string $uri, int $statusCode) : \GuzzleHttp\Promise\PromiseInterface
Enable tracking on promise.
\GuzzleHttp\Promise\PromiseInterface | $promise | |
string | $uri | |
int | $statusCode |
guardMax(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $options) : void
Check for too many redirects
\Psr\Http\Message\RequestInterface | $request | |
\Psr\Http\Message\ResponseInterface | $response | |
array | $options |
Too many redirects.
redirectUri(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $protocols) : \Psr\Http\Message\UriInterface
Set the appropriate URL on the request based on the location header
\Psr\Http\Message\RequestInterface | $request | |
\Psr\Http\Message\ResponseInterface | $response | |
array | $protocols |