File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -731,10 +731,11 @@ The ``RetryableHttpClient`` uses a
731
731
decide if the request should be retried, and to define the waiting time between
732
732
each retry.
733
733
734
- Retry over different uris
734
+ Retry over different URIs
735
735
.........................
736
736
737
737
.. versionadded :: 6.3
738
+
738
739
The multiple ``base_uri `` feature was added in Symfony 6.3.
739
740
740
741
The ``RetryableHttpClient `` can be configured to use multiple base URIs. This
@@ -759,14 +760,13 @@ base URIs you want to shuffle in an additional array::
759
760
760
761
$response = $client->request('GET', 'foo-bar', [
761
762
'base_uri' => [
762
- 'http://example.com/a/',
763
763
[
764
- // one random URI from this list will be used on retry #2
764
+ // this array will be randomized
765
+ 'http://example.com/a/',
765
766
'http://example.com/b/',
766
- 'http://example.com/c/',
767
767
],
768
768
// non-nested base URIs are used in order
769
- 'http://example.com/d /',
769
+ 'http://example.com/c /',
770
770
],
771
771
]);
772
772
You can’t perform that action at this time.
0 commit comments