@@ -694,9 +694,10 @@ Retry Failed Requests
694694Sometimes, requests fail because of network issues or temporary server errors.
695695Symfony's HttpClient allows to retry failed requests automatically using the
696696:ref: `retry_failed option <reference-http-client-retry-failed >`. When enabled,
697- each failed request with an HTTP status of ``423 ``, ``425 ``, ``429 ``, ``500 ``,
698- ``502 ``, ``503 ``, ``504 ``, ``507 ``, or ``510 `` is retried up to 3 times, with an
699- exponential delay between retries (first retry = 1 second; third retry: 4 seconds).
697+ each failed request with an HTTP status of ``423 ``, ``425 ``, ``429 ``, ``502 ``,
698+ ``503 `` or with an `idempotent method `_ and a HTTP status of ``500 ``, ``504 ``,
699+ ``507 `` or ``510 `` is retried up to 3 times, with an exponential delay between
700+ retries (first retry = 1 second; third retry: 4 seconds).
700701
701702Check out the full list of configurable :ref: `retry_failed options <reference-http-client-retry-failed >`
702703to learn how to tweak each of them to fit your application needs.
@@ -1610,3 +1611,4 @@ Then configure Symfony to use your callback:
16101611.. _`cURL options` : https://www.php.net/manual/en/function.curl-setopt.php
16111612.. _`Server-sent events` : https://html.spec.whatwg.org/multipage/server-sent-events.html
16121613.. _`EventSource` : https://www.w3.org/TR/eventsource/#eventsource
1614+ .. _`idempotent method` : https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Idempotent_methods_and_web_applications
0 commit comments