$nextHandler
$nextHandler : callable
Middleware that retries requests based on the boolean result of invoking the provided "decider" function.
$nextHandler : callable
$decider : callable
$delay : callable
__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 | Next handler to invoke. |
callable | $delay | Function that accepts the number of retries and [response] and returns the number of milliseconds to delay. |
Loading…