private function RetryMiddleware::onFulfilled in Auth0 Single Sign On 8.2
Execute fulfilled closure
Return value
mixed
1 call to RetryMiddleware::onFulfilled()
- RetryMiddleware::__invoke in vendor/
guzzlehttp/ guzzle/ src/ RetryMiddleware.php
File
- vendor/
guzzlehttp/ guzzle/ src/ RetryMiddleware.php, line 82
Class
- RetryMiddleware
- Middleware that retries requests based on the boolean result of invoking the provided "decider" function.
Namespace
GuzzleHttpCode
private function onFulfilled(RequestInterface $req, array $options) {
return function ($value) use ($req, $options) {
if (!call_user_func($this->decider, $options['retries'], $req, $value, null)) {
return $value;
}
return $this
->doRetry($req, $options, $value);
};
}