(no description)
File Size: | 116 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
RetryMiddleware:: (6 methods):
__construct()
exponentialDelay()
__invoke()
onFulfilled()
onRejected()
doRetry()
Class: RetryMiddleware - X-Ref
Middleware that retries requests based on the boolean result of__construct(callable $decider, callable $nextHandler, callable $delay = null) X-Ref |
param: callable $decider Function that accepts the number of retries, param: callable(RequestInterface, array): PromiseInterface $nextHandler Next handler to invoke. param: (callable(int): int)|null $delay Function that accepts the number of retries |
exponentialDelay(int $retries) X-Ref |
Default exponential backoff delay function. return: int milliseconds. |
__invoke(RequestInterface $request, array $options) X-Ref |
No description |
onFulfilled(RequestInterface $request, array $options) X-Ref |
Execute fulfilled closure |
onRejected(RequestInterface $req, array $options) X-Ref |
Execute rejected closure |
doRetry(RequestInterface $request, array $options, ResponseInterface $response = null) X-Ref |
No description |