@@ -140,8 +140,7 @@ Configuration
140
140
141
141
* :ref: `retry_failed <reference-http-client-retry-failed >`
142
142
143
- * `backoff_service `_
144
- * `decider_service `_
143
+ * `retry_strategy `_
145
144
10000
* :ref: `enabled <reference-http-client-retry-enabled >`
146
145
* `delay `_
147
146
* `http_codes `_
@@ -157,8 +156,7 @@ Configuration
157
156
158
157
* :ref: `retry_failed <reference-http-client-retry-failed >`
159
158
160
- * `backoff_service `_
161
- * `decider_service `_
159
+ * `retry_strategy `_
162
160
* :ref: `enabled <reference-http-client-retry-enabled >`
163
161
* `delay `_
164
162
* `http_codes `_
@@ -780,8 +778,7 @@ will automatically retry failed HTTP requests.
780
778
http_client :
781
779
# ...
782
780
retry_failed :
783
- # backoff_service: app.custom_backoff
784
- # decider_service: app.custom_decider
781
+ # retry_strategy: app.custom_strategy
785
782
http_codes : [429, 500]
786
783
max_retries : 2
787
784
delay : 1000
@@ -826,21 +823,6 @@ in the `Microsoft NTLM authentication protocol`_. The value of this option must
826
823
follow the format ``username:password ``. This authentication mechanism requires
827
824
using the cURL-based transport.
828
825
829
- backoff_service
830
- ...............
831
-
832
- **type **: ``string ``
833
-
834
- .. versionadded :: 5.2
835
-
836
- The ``backoff_service `` option was introduced in Symfony 5.2.
837
-
838
- The service id used to compute the time to wait between retries. By default, it
839
- uses an instance of
840
- :class: `Symfony\\ Component\\ HttpClient\\ Retry\\ ExponentialBackOff ` configured
841
- with ``delay ``, ``max_delay ``, ``multiplier `` and ``jitter `` options. This
842
- class has to implement :class: `Symfony\\ Component\\ HttpClient\\ Retry\\ RetryBackOffInterface `.
843
-
844
826
base_uri
845
827
........
846
828
@@ -909,21 +891,6 @@ ciphers
909
891
A list of the names of the ciphers allowed for the SSL/TLS connections. They
910
892
can be separated by colons, commas or spaces (e.g. ``'RC4-SHA:TLS13-AES-128-GCM-SHA256' ``).
911
893
912
- decider_service
913
- ...............
914
-
915
- **type **: ``string ``
916
-
917
- .. versionadded :: 5.2
918
-
919
- The ``decider_service `` option was introduced in Symfony 5.2.
920
-
921
- The service id used to decide if a request should be retried. By default, it
922
- uses an instance of
923
- :class: `Symfony\\ Component\\ HttpClient\\ Retry\\ HttpStatusCodeDecider ` configured
924
- with the ``http_codes `` option. This class has to implement
925
- :class: `Symfony\\ Component\\ HttpClient\\ Retry\\ RetryDeciderInterface `.
926
-
927
894
delay
928
895
.....
929
896
@@ -1124,6 +1091,22 @@ client and to make your tests easier.
1124
1091
The value of this option is an associative array of ``domain => IP address ``
1125
1092
(e.g ``['symfony.com' => '46.137.106.254', ...] ``).
1126
1093
1094
+ retry_strategy
1095
+ ...............
1096
+
1097
+ **type **: ``string ``
1098
+
1099
+ .. versionadded :: 5.2
1100
+
1101
+ The ``retry_strategy `` option was introduced in Symfony 5.2.
1102
+
1103
+ The service is used to decide if a request should be retried and to compute the
1104
+ time to wait between retries. By default, it uses an instance of
1105
+ :class: `Symfony\\ Component\\ HttpClient\\ Retry\\ GenericRetryStrategy ` configured
1106
+ with ``http_codes ``, ``delay ``, ``max_delay ``, ``multiplier `` and ``jitter ``
1107
+ options. This class has to implement
1108
+ :class: `Symfony\\ Component\\ HttpClient\\ Retry\\ RetryStrategyInterface `.
1109
+
1127
1110
scope
1128
1111
.....
1129
1112
0 commit comments