Skip to content

Commit cfdbb16

Browse files
committed
Minor tweak
1 parent 27797b4 commit cfdbb16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

http_client.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ You can configure the global options using the ``default_options`` option:
141141
You can also use the :method:`Symfony\\Contracts\\HttpClient\\HttpClientInterface::withOptions`
142142
method to retrieve a new instance of the client with new default options::
143143

144-
$this->client = $client->withOptions([
145-
'base_uri' => 'https://...',
146-
'headers' => ['header-name' => 'value0, value1, ...']
147-
]);
144+
$this->client = $client->withOptions([
145+
'base_uri' => 'https://...',
146+
'headers' => ['header-name' => 'header-value']
147+
]);
148148

149149
.. versionadded:: 5.3
150150

151-
The :method:`Symfony\\Contracts\\HttpClient\\HttpClientInterface::withOptions` method was introduced in Symfony 5.3.
151+
The ``withOptions()`` method was introduced in Symfony 5.3.
152152

153153
Some options are described in this guide:
154154

0 commit comments

Comments
 (0)