Skip to content

[HttpClient] Mention the merging of custom options and default scoped options #21045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ autoconfigure the HTTP client based on the requested URL:
You can define several scopes, so that each set of options is added only if a
requested URL matches one of the regular expressions set by the ``scope`` option.

.. note::

The options passed to the ``request()`` method are merged with the default
options defined in the scoped client. The options passed to ``request()``
take precedence and override or extend the default ones.

If you use scoped clients in the Symfony framework, you must use any of the
methods defined by Symfony to :ref:`choose a specific service <services-wire-specific-service>`.
Each client has a unique service named after its configuration.
Expand Down