Skip to content

Commit

Permalink
rename addHeader to setHeader in httpclient
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYamous authored Oct 15, 2024
1 parent e1ad3b0 commit 7fff76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ brings most of the available options with type-hinted getters and setters::
->setBaseUri('https://...')
// replaces *all* headers at once, and deletes the headers you do not provide
->setHeaders(['header-name' => 'header-value'])
// set or replace a single header using addHeader()
// set or replace a single header using setHeader()
->setHeader('another-header-name', 'another-header-value')
->toArray()
);
Expand Down

0 comments on commit 7fff76b

Please sign in to comment.