Skip to content

Commit 9da4f0d

Browse files
committed
minor symfony#14236 Update http_client.rst : standalone HttpClient max host connections param (ybenhssaien)
This PR was submitted for the 5.1 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update http_client.rst : standalone HttpClient max host connections param As the signature of `create` method : `public static function create(array $defaultOptions = [], int $maxHostConnections = 6, int $maxPendingPushes = 50): HttpClientInterface` The max host connection should be passed as the second param to this method instead of an option. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 70944d0 Update http_client.rst
2 parents e21c334 + 70944d0 commit 9da4f0d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

http_client.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,7 @@ The HTTP client also has one configuration option called
197197
198198
.. code-block:: php-standalone
199199
200-
$client = HttpClient::create([
201-
'max_host_connections' => 10,
202-
// ...
203-
]);
200+
$client = HttpClient::create([], 10);
204201
205202
Scoping Client
206203
~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)