Class Guzzle\Plugin\Backoff\HttpBackoffStrategy

InheritanceGuzzle\Plugin\Backoff\HttpBackoffStrategy » Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy » Guzzle\Plugin\Backoff\AbstractBackoffStrategy
ImplementsGuzzle\Plugin\Backoff\BackoffStrategyInterface

Strategy used to retry HTTP requests based on the response code.

Retries 500 and 503 error by default.

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getDelay() Guzzle\Plugin\Backoff\HttpBackoffStrategy

Property Details

$defaultErrorCodes protected static property

Default cURL errors to retry

protected static array $defaultErrorCodes = [500503]

Method Details

getDelay() protected method

protected void getDelay ( $retries, Guzzle\Http\Message\RequestInterface $request, Guzzle\Http\Message\Response $response null, Guzzle\Http\Exception\HttpException $e null )
$retries
$request
$response
$e