Download the PHP package compwright/should-retry without Composer
On this page you can find all versions of the php package compwright/should-retry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download compwright/should-retry
More information about compwright/should-retry
Files in compwright/should-retry
Download compwright/should-retry
More information about compwright/should-retry
Files in compwright/should-retry
Vendor compwright
Package should-retry
Short Description PSR interop HTTP retry middleware helper
License MIT
Homepage https://github.com/compwright/should-retry
Package should-retry
Short Description PSR interop HTTP retry middleware helper
License MIT
Homepage https://github.com/compwright/should-retry
Please rate this library. Is it a good library?
Informations about the package should-retry
compwright/should-retry
Installation
$ composer require compwright/should-retry
Usage with Guzzle HTTP library
The popular Guzzle HTTP library includes a retry middleware:
Configuration
Both ShouldRetry and RetryAfter are configurable via setters:
Default configuration:
- Retry up to 3 times
- Retry on 429, 500, 502, 503, 504 error codes
- When retrying, wait
Retry-Afterseconds - If header is missing, use exponential backoff
License
MIT License
All versions of should-retry with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1 || ^8.2 || ^8.3 || ^8.4
psr/http-client Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/log Version ^1.0 || ^2.0 || ^3.0
psr/http-client Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/log Version ^1.0 || ^2.0 || ^3.0
The package compwright/should-retry contains the following files
Loading the files please wait ...