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: #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 targos committed Jul 31, 2022
1 parent ba1f864 commit 3ba17b1
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 @@ -2641,12 +2641,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 3ba17b1

Please sign in to comment.