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 <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 juanarbol committed May 31, 2022
1 parent 5530d3f commit a47092f
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 a47092f

Please sign in to comment.