Skip to content

Commit 462eeff

Browse files
committed
Fix forgotten coma
1 parent fb9ccb3 commit 462eeff

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

http_client.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -735,16 +735,16 @@ Retry over different uris
735735
.........................
736736

737737
When using a ``RetryableHttpClient``, the ``base_uri`` can be set as an array of
738-
uris. The array will be used in the given order, meaning that the first request
739-
will be made with the first uri in the array. Should it fail, the next one will
738+
uris. The array will be used in the given order, meaning that the first request
739+
will be made with the first uri in the array. Should it fail, the next one will
740740
be used for the first retry. If the number of configured retries is greater than
741741
the number of given uris, the last uri will be used for every exceding retry.
742742

743743
You can pass the array of base uris directly to the ``request`` method or when
744744
creating a HttpClient with the ``withOptions`` method::
745745

746746
use Symfony\Component\HttpClient\RetryableHttpClient;
747-
747+
748748
$client = new RetryableHttpClient(HttpClient::create());
749749

750750
$response = $client->request('GET', 'some-path', [
@@ -764,13 +764,13 @@ creating a HttpClient with the ``withOptions`` method::
764764

765765
$response = $client->request('GET', 'some-path');
766766

767-
If you wish some or all of the base uris to be shuffled, you can pass a nested
768-
array inside the ``base_uri`` array. Every uri inside the nested array will be
769-
randomized, and the order of the base uris outside this nested array will be
767+
If you wish some or all of the base uris to be shuffled, you can pass a nested
768+
array inside the ``base_uri`` array. Every uri inside the nested array will be
769+
randomized, and the order of the base uris outside this nested array will be
770770
preserved::
771771

772772
use Symfony\Component\HttpClient\RetryableHttpClient;
773-
773+
774774
$client = new RetryableHttpClient(HttpClient::create());
775775

776776
$response = $client->request('GET', 'some-path', [
@@ -780,7 +780,7 @@ preserved::
780780
// base uri passed inside a nested array will be shuffled
781781
'http://example.com/b/',
782782
'http://example.com/c/',
783-
]
783+
],
784784
// the order of the non-nested base uris is preserved
785785
'http://example.com/d/',
786786
],

0 commit comments

Comments
 (0)