$nextHandler
$nextHandler
Middleware that retries requests based on the boolean result of invoking the provided "decider" function.
$decider : callable
$delay : callable|(int)
__construct(callable $decider, callable $nextHandler, callable $delay = null) : mixed
callable | $decider | Function that accepts the number of retries, a request, [response], and [exception] and returns true if the request is to be retried. |
callable | $nextHandler | |
callable | $delay |
doRetry(\Psr\Http\Message\RequestInterface $request, array $options, \Psr\Http\Message\ResponseInterface $response = null) : \GuzzleHttp\Promise\PromiseInterface
\Psr\Http\Message\RequestInterface | $request | |
array | $options | |
\Psr\Http\Message\ResponseInterface | $response |