Middleware that retries requests based on the boolean result of invoking the provided "decider" function.
- final
CloneableInstantiable
Methods |
public __construct(callable $decider, callable $nextHandler, ?callable $delay = NULL)
|
public __invoke(Psr\Http\Message\RequestInterface $request, array $options) : GuzzleHttp |
public static exponentialDelay(int $retries) : int Default exponential backoff delay function.
|
Properties |
private $decider = NULL
|
private $delay = NULL
|
private $nextHandler = NULL
|
Methods |
private doRetry(Psr\Http\Message\RequestInterface $request, array $options, ?Psr\Http\Message\ResponseInterface $response = NULL) : GuzzleHttp |
private onFulfilled(Psr\Http\Message\RequestInterface $request, array $options) : callable Execute fulfilled closure |
private onRejected(Psr\Http\Message\RequestInterface $req, array $options) : callable Execute rejected closure |
Methods |
public static exponentialDelay(int $retries) : int Default exponential backoff delay function.
|