Skip to content

Commit 9dd06ab

Browse files
committed
Review feedback
1 parent fb64d7f commit 9dd06ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ brings most of the available options with type-hinted getters and setters::
150150
$this->client = $client->withOptions(
151151
(new HttpOptions())
152152
->setBaseUri('https://...')
153-
// Set headers replace *all* headers at once, and deletes the headers you do not provide
153+
// setHeaders() replaces *all* headers at once, and deletes the headers you do not provide
154154
->setHeaders(['header-name' => 'header-value'])
155-
// Alternatively, add or replace only one header to an existing HttpOptions object.
155+
// add or replace a single header using addHeader()
156156
->addHeader('another-header-name', 'another-header-value')
157157
->toArray()
158158
);

0 commit comments

Comments
 (0)