packagist php-http/client-common v1.6.0
1.6.0

latest releases: 2.x-dev, dev-fix-static-ci, 2.7.1...
6 years ago

Added

  • Add HttpClientPool client to leverage load balancing and fallback mechanism see the documentation for more details.
  • PluginClientFactory to create PluginClient instances.
  • Added new option 'delay' for RetryPlugin.
  • Added new option 'decider' for RetryPlugin.
  • Supports more cookie date formats in the Cookie Plugin

Changed

  • The RetryPlugin does now wait between retries. To disable/change this feature you must write something like:
$plugin = new RetryPlugin(['delay' => function(RequestInterface $request, Exception $e, $retries) { 
  return 0; 
}); 

Deprecated

  • The debug_plugins option for PluginClient is deprecated and will be removed in 2.0. Use the decorator design pattern instead like in ProfilePlugin.

Don't miss a new client-common release

NewReleases is sending notifications on new releases.