Registry / http-client / guzzlehttp-retry-subscriber

guzzlehttp-retry-subscriber

JSON →
library2.0.2phppackagistunverified

Retries failed HTTP requests using customizable retry strategies (Guzzle 4+).

composer require guzzlehttp/retry-subscriber
INSTALL
IMPORT
SIG · GUZZLEHTTP-RETRY-S
G
guzzlehttp-retry-subscriber
http-clientphpv2.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RetrySubscriber
✓ use GuzzleHttp\Subscriber\Retry\RetrySubscriber;

Attach a retry subscriber to a Guzzle client to automatically retry failed requests.

use GuzzleHttp\Client; use GuzzleHttp\Subscriber\Retry\RetrySubscriber; $client = new Client(); $retrySubscriber = new RetrySubscriber([ 'max' => 3, 'delay' => 1000, ]); $client->getEmitter()->attach($retrySubscriber);
Debug
Known issues
breakingOnly compatible with Guzzle 4 and 5; not Guzzle 6+.
fix
Use Guzzle 6+ built-in retry middleware or the guzzlehttp/retry-middleware package.
affects: >=1.0.0
Upgrade
Version history
2.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
guzzlehttp-retry-subscriber — pip install guzzlehttp-retry-subscriber · libregistry