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 fb64d7f commit 9dd06abCopy full SHA for 9dd06ab
http_client.rst
@@ -150,9 +150,9 @@ brings most of the available options with type-hinted getters and setters::
150
$this->client = $client->withOptions(
151
(new HttpOptions())
152
->setBaseUri('https://...')
153
- // Set headers replace *all* headers at once, and deletes the headers you do not provide
+ // setHeaders() replaces *all* headers at once, and deletes the headers you do not provide
154
->setHeaders(['header-name' => 'header-value'])
155
- // Alternatively, add or replace only one header to an existing HttpOptions object.
+ // add or replace a single header using addHeader()
156
->addHeader('another-header-name', 'another-header-value')
157
->toArray()
158
);
0 commit comments