All Notable changes to guzzle_retry_middleware
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
- Added
expose_retry_header
andretry_header
options for debugging purposes (thanks, @coudenysj) - Travis CI now tests PHP v7.2
- Allow newer versions of PHPUnit in
composer.json
(match Guzzle composer.json PHPUnit requirements)
- Refactored data provider method name in PHPUnit test (
testRetryOccursWhenStatusCodeMatchesProvider
→providerForRetryOccursWhenStatusCodeMatches
) - Use PHPUnit new namespaced class name
- Fix
phpunit.xml.dist
specification so that PHPUnit no longer emits warnings - Travis CI should use lowest library versions on lowest supported version of PHP (v5.5, not 5.6)
hhvm
tests in Travis CI; they were causing builds to fail
- Added
retry_enabled
parameter to allow quick disable of retry on specific requests - Added ability to pass in a callable to
default_retry_multiplier
in order to implement custom delay logic
- Added ability to retry on connect or request timeout (
retry_on_timeout
option) - Added better tests for retry callback
- Changed callback signature for
on_retry_callback
callback. Response object is no longer guaranteed to be present, so the callback signature now looks like this:(int $retryCount, int $delayTimeout, RequestInterface $request, array $options, ResponseInterface|null $response)
. - Updated Guzzle requirement to v6.3 or newer
- Clarified and cleaned up some documentation in README, including a typo.
- Everything; this is the initial version.