/opt/cpanel/ea-wappspector/vendor/guzzlehttp/guzzle/src
NameSizeModeActions
Cookie/-0755rm
Exception/-0755rm
Handler/-0755rm
BodySummarizer.php6080644editdlrm
BodySummarizerInterface.php2330644editdlrm
Client.php557760644editdlrm
ClientInterface.php29010644editdlrm
ClientTrait.php90060644editdlrm
functions.php102870644editdlrm
functions_include.php1600644editdlrm
HandlerStack.php90910644editdlrm
MessageFormatter.php79690644editdlrm
MessageFormatterInterface.php5610644editdlrm
Middleware.php111590644editdlrm
Multiplexing.php7560644editdlrm
Pool.php51140644editdlrm
PrepareBodyMiddleware.php31360644editdlrm
RedirectMiddleware.php88720644editdlrm
RequestOptions.php202310644editdlrm
RetryMiddleware.php38860644editdlrm
TransferStats.php31800644editdlrm
TransportSharing.php2490644editdlrm
Utils.php312090644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php (3886B)
decider = $decider; $this->nextHandler = $nextHandler; $this->delay = $delay ?: static function (int $retries): int { return (int) 2 ** ($retries - 1) * 1000; }; } /** * Default exponential backoff delay function. * * @return int milliseconds. * * @deprecated since 7.11, will be removed in 8.0. */ public static function exponentialDelay(int $retries): int { \trigger_deprecation('guzzlehttp/guzzle', '7.11', '%s::%s() is deprecated and will be removed in 8.0.', __CLASS__, __FUNCTION__); return (int) 2 ** ($retries - 1) * 1000; } public function __invoke(RequestInterface $request, array $options): PromiseInterface { if (!isset($options['retries'])) { $options['retries'] = 0; } $fn = $this->nextHandler; return $fn($request, $options) ->then( $this->onFulfilled($request, $options), $this->onRejected($request, $options) ); } /** * Execute fulfilled closure */ private function onFulfilled(RequestInterface $request, array $options): callable { return function ($value) use ($request, $options) { if (!($this->decider)( $options['retries'], $request, $value, null )) { return $value; } return $this->doRetry($request, $options, $value); }; } /** * Execute rejected closure */ private function onRejected(RequestInterface $req, array $options): callable { return function ($reason) use ($req, $options) { if (!($this->decider)( $options['retries'], $req, null, $reason )) { return P\Create::rejectionFor($reason); } return $this->doRetry($req, $options); }; } private function doRetry(RequestInterface $request, array $options, ?ResponseInterface $response = null): PromiseInterface { $options['delay'] = ($this->delay)(++$options['retries'], $response, $request); return $this($request, $options); } }