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 <[email protected]>
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Akhil Marsonya <[email protected]>
  • 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.