Download the PHP package mingalevme/retryable-psr-http-client without Composer
On this page you can find all versions of the php package mingalevme/retryable-psr-http-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mingalevme/retryable-psr-http-client
More information about mingalevme/retryable-psr-http-client
Files in mingalevme/retryable-psr-http-client
Download mingalevme/retryable-psr-http-client
More information about mingalevme/retryable-psr-http-client
Files in mingalevme/retryable-psr-http-client
Vendor mingalevme
Package retryable-psr-http-client
Short Description The package provides a familiar PSR HTTP Client interface with automatic retries and exponential backoff (and others strategies). It is a thin wrapper over the standard PSR HTTP Client and exposes same public API. This makes the decorator very easy to drop into existing programs.
License MIT
Homepage https://github.com/mingalevme/retryable-psr-http-client-php
Package retryable-psr-http-client
Short Description The package provides a familiar PSR HTTP Client interface with automatic retries and exponential backoff (and others strategies). It is a thin wrapper over the standard PSR HTTP Client and exposes same public API. This makes the decorator very easy to drop into existing programs.
License MIT
Homepage https://github.com/mingalevme/retryable-psr-http-client-php
Keywords psrhttp-client
Please rate this library. Is it a good library?
Informations about the package retryable-psr-http-client
mingalevme/retryable-psr-http-client-php
Simple Retryable Psr Http Client Decorator with Retry-After-header support* and 100% code coverage.
NOTE: Retry-After-header handling is disabled by default because relying on untrusted headers it risky and dangerous, turn it on only if you clearly understand the consequences.
Composer
Example 1 (Simple drop-in replacement)
- Max 3 attempts.
- Triggers on 5xx/429 response status codes and/or
Psr\Http\Client\ClientExceptionInterface
. - Exponential backoff: 2 power of attempt number (1, 2, 4, 8, ...).
Example 2 (Extended Usage)
- Max 5 attempts.
- Respect Retry-After-header.
- Liner backoff with 1s (initial value) + 2s (slope).
- Triggers on 4xx, 5xx and
Psr\Http\Client\ClientExceptionInterface
. - Log on any error (unacceptable response or
Psr\Http\Client\ClientExceptionInterface
-exception).
All versions of retryable-psr-http-client with dependencies
PHP Build Version
Package Version
The package mingalevme/retryable-psr-http-client contains the following files
Loading the files please wait ....