8000 Rebase and reapply fixes · symfony/symfony-docs@83ec702 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83ec702

Browse files
committed
Rebase and reapply fixes
1 parent f13c7bb commit 83ec702

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

http_client.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ The ``RetryableHttpClient`` uses a
731731
decide if the request should be retried, and to define the waiting time between
732732
each retry.
733733

734-
Retry over different URIs
734+
Retry Over Different URIs
735735
.........................
736736

737737
.. versionadded:: 6.3
@@ -747,21 +747,21 @@ request::
747747
'base_uri' => [
748748
// first request will use this base URI
749749
'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
751751
'http://example.com/b/',
752752
],
753753
]);
754754

755755
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.
757757

758758
If you want to shuffle the order of base URIs for each retry attempt, nest the
759759
base URIs you want to shuffle in an additional array::
760760

761761
$response = $client->request('GET', 'foo-bar', [
762762
'base_uri' => [
763763
[
764-
// this array will be randomized
764+
// a single random URI from this array will be used for the first request
765765
'http://example.com/a/',
766766
'http://example.com/b/',
767767
],

0 commit comments

Comments
 (0)
0