File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -731,7 +731,7 @@ 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
@@ -747,21 +747,21 @@ request::
747
747
'base_uri' => [
748
748
// first request will use this base URI
749
749
'http://example.com/a/',
750
- // if first request fails, this second base URI will be used
750
+ // if first request fails, the following base URI will be used
751
751
'http://example.com/b/',
752
752
],
753
753
]);
754
754
755
755
When the number of retries is higher than the number of base URIs, the
756
- last base URI will be used for remaining retries.
756
+ last base URI will be used for the remaining retries.
757
757
758
758
If you want to shuffle the order of base URIs for each retry attempt, nest the
759
759
base URIs you want to shuffle in an additional array::
760
760
761
761
$response = $client->request('GET', 'foo-bar', [
762
762
'base_uri' => [
763
763
[
764
- // this array will be randomized
764
+ // a single random URI from this array will be used for the first request
765
765
'http://example.com/a/',
766
766
'http://example.com/b/',
767
767
],
You can’t perform that action at this time.