Skip to content

Commit 1af1c49

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: [HttpClient] Mention the merging of custom options and default scoped options
2 parents 00862ab + 7468ac6 commit 1af1c49

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
@@ -342,6 +342,12 @@ autoconfigure the HTTP client based on the requested URL:
342342
You can define several scopes, so that each set of options is added only if a
343343
requested URL matches one of the regular expressions set by the ``scope`` option.
344344

345+
.. note::
346+
347+
The options passed to the ``request()`` method are merged with the default
348+
options defined in the scoped client. The options passed to ``request()``
349+
take precedence and override or extend the default ones.
350+
345351
If you use scoped clients in the Symfony framework, you must use any of the
346352
methods defined by Symfony to :ref:`choose a specific service <services-wire-specific-service>`.
347353
Each client has a unique service named after its configuration.

0 commit comments

Comments
 (0)