You are here

private function RetryMiddleware::doRetry in Lockr 7.3

2 calls to RetryMiddleware::doRetry()
RetryMiddleware::onFulfilled in vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
RetryMiddleware::onRejected in vendor/guzzlehttp/guzzle/src/RetryMiddleware.php

File

vendor/guzzlehttp/guzzle/src/RetryMiddleware.php, line 106

Class

RetryMiddleware
Middleware that retries requests based on the boolean result of invoking the provided "decider" function.

Namespace

GuzzleHttp

Code

private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null) {
  $options['delay'] = call_user_func($this->delay, ++$options['retries'], $response);
  return $this($request, $options);
}