Skip to content

Commit

Permalink
doc: fix outgoingMessage.removeHeader() signature
Browse files Browse the repository at this point in the history
Specify that `outgoingMessage.removeHeader()` takes a `name` argument
whose type is string.

PR-URL: nodejs#42652
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
  • Loading branch information
lpinca authored and xtx1130 committed Apr 25, 2022
1 parent d1874f6 commit b8e0c24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2655,12 +2655,14 @@ it inherits from `Stream`.

The User should not call this function directly.

### `outgoingMessage.removeHeader()`
### `outgoingMessage.removeHeader(name)`

<!-- YAML
added: v0.4.0
added: v0.4.0
-->

* `name` {string} Header name

Removes a header that is queued for implicit sending.

```js
Expand Down

0 comments on commit b8e0c24

Please sign in to comment.