File manager - Edit - /home/jardides/www/Cloud/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Plugin/Backoff/ReasonPhraseBackoffStrategy.php
Back
<?php namespace Guzzle\Plugin\Backoff; use Guzzle\Http\Message\RequestInterface; use Guzzle\Http\Message\Response; use Guzzle\Http\Exception\HttpException; /** * Strategy used to retry HTTP requests when the response's reason phrase matches one of the registered phrases. */ class ReasonPhraseBackoffStrategy extends AbstractErrorCodeBackoffStrategy { public function makesDecision() { return true; } protected function getDelay($retries, RequestInterface $request, Response $response = null, HttpException $e = null) { if ($response) { return isset($this->errorCodes[$response->getReasonPhrase()]) ? true : null; } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings