Skip to content

Commit 983e7ae

Browse files
committed
minor symfony#21045 [HttpClient] Mention the merging of custom options and default scoped options (javiereguiluz)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [HttpClient] Mention the merging of custom options and default scoped options Fixes symfony#20569. Commits ------- 56d1512 [HttpClient] Mention the merging of custom options and default scoped options
2 parents f5af7bd + 56d1512 commit 983e7ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

http_client.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,12 @@ autoconfigure the HTTP client based on the requested URL:
334334
You can define several scopes, so that each set of options is added only if a
335335
requested URL matches one of the regular expressions set by the ``scope`` option.
336336

337+
.. note::
338+
339+
The options passed to the ``request()`` method are merged with the default
340+
options defined in the scoped client. The options passed to ``request()``
341+
take precedence and override or extend the default ones.
342+
337343
If you use scoped clients in the Symfony framework, you must use any of the
338344
methods defined by Symfony to :ref:`choose a specific service <services-wire-specific-service>`.
339345
Each client has a unique service named after its configuration.

0 commit comments

Comments
 (0)