Skip to content

Commit e9c7ec7

Browse files
committed
-
1 parent 8c03870 commit e9c7ec7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

http_client.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ brings most of the available options with type-hinted getters and setters::
150150
$this->client = $client->withOptions(
151151
(new HttpOptions())
152152
->setBaseUri('https://...')
153-
// setHeaders() replaces *all* headers at once, and deletes the headers you do not provide
153+
// replaces *all* headers at once, and deletes the headers you do not provide
154154
->setHeaders(['header-name' => 'header-value'])
155155
// add or replace a single header using addHeader()
156156
->addHeader('another-header-name', 'another-header-value')
@@ -159,7 +159,8 @@ brings most of the available options with type-hinted getters and setters::
159159

160160
.. versionadded:: 7.1
161161

162-
The :method:`Symfony\\Component\\HttpClient\\HttpOptions::addHeader` method was introduced in Symfony 7.1.
162+
The :method:`Symfony\\Component\\HttpClient\\HttpOptions::addHeader`
163+
method was introduced in Symfony 7.1.
163164

164165
Some options are described in this guide:
165166

0 commit comments

Comments
 (0)