We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c64e7e7 commit dc43787Copy full SHA for dc43787
http_client.rst
@@ -154,6 +154,15 @@ brings most of the available options with type-hinted getters and setters::
154
->toArray()
155
);
156
157
+.. tip::
158
+
159
+ Be aware that calling :method:`Symfony\\Component\\HttpClient\\HttpOptions::setHeaders` overrides all previous headers.
160
+ If you intend to add or replace only one header, use :method:`Symfony\\Component\\HttpClient\\HttpOptions::addHeader` instead.
161
162
+.. versionadded:: 7.1
163
164
+ The :method:`Symfony\\Component\\HttpClient\\HttpOptions::addHeader` method was introduced in Symfony 7.1.
165
166
Some options are described in this guide:
167
168
* `Authentication`_
0 commit comments