HISTORY_HEADER
HISTORY_HEADER = 'X-Guzzle-Redirect-History'
Request redirect middleware.
Apply this middleware like other middleware using \GuzzleHttp\GuzzleHttp\Middleware::redirect().
__invoke(\Psr\Http\Message\RequestInterface $request, array $options) : \GuzzleHttp\Promise\PromiseInterface
\Psr\Http\Message\RequestInterface | $request | |
array | $options |
checkRedirect(\Psr\Http\Message\RequestInterface $request, array $options, \Psr\Http\Message\ResponseInterface|\GuzzleHttp\Promise\PromiseInterface $response) : \Psr\Http\Message\ResponseInterface|\GuzzleHttp\Promise\PromiseInterface
\Psr\Http\Message\RequestInterface | $request | |
array | $options | |
\Psr\Http\Message\ResponseInterface|\GuzzleHttp\Promise\PromiseInterface | $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, $uri, $statusCode)
\GuzzleHttp\Promise\PromiseInterface | $promise | |
$uri | ||
$statusCode |
guardMax(\Psr\Http\Message\RequestInterface $request, array $options)
\Psr\Http\Message\RequestInterface | $request | |
array | $options |
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 |