Skip to content

Commit b1c1a84

Browse files
committed
Fix demos and title
1 parent 83ec702 commit b1c1a84

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

http_client.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,8 @@ 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
735-
.........................
734+
Retry Over Several Base URIs
735+
............................
736736

737737
.. versionadded:: 6.3
738738

@@ -743,12 +743,12 @@ feature provides increased flexibility and reliability for making HTTP
743743
requests. Pass an array of base URIs as option ``base_uri`` when making a
744744
request::
745745

746-
$response = $client->request('GET', 'foo-bar', [
746+
$response = $client->request('GET', 'some-page', [
747747
'base_uri' => [
748748
// first request will use this base URI
749-
'http://example.com/a/',
749+
'https://example.com/a/',
750750
// if first request fails, the following base URI will be used
751-
'http://example.com/b/',
751+
'https://example.com/b/',
752752
],
753753
]);
754754

@@ -758,15 +758,15 @@ last base URI will be used for the remaining retries.
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

761-
$response = $client->request('GET', 'foo-bar', [
761+
$response = $client->request('GET', 'some-page', [
762762
'base_uri' => [
763763
[
764764
// a single random URI from this array will be used for the first request
765-
'http://example.com/a/',
766-
'http://example.com/b/',
765+
'https://example.com/a/',
766+
'https://example.com/b/',
767767
],
768768
// non-nested base URIs are used in order
769-
'http://example.com/c/',
769+
'https://example.com/c/',
770770
],
771771
]);
772772

@@ -780,8 +780,8 @@ You can also configure the array of base URIs using the ``withOptions()``
780780
method::
781781

782782
$client = $client->withOptions(['base_uri' => [
783-
'http://example.com/a/',
784-
'http://example.com/b/',
783+
'https://example.com/a/',
784+
'https://example.com/b/',
785785
]]);
786786

787787
HTTP Proxies

0 commit comments

Comments
 (0)