diff options
author | Luigi Pinca <luigipinca@gmail.com> | 2022-04-10 11:08:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-10 11:08:56 +0300 |
commit | 13ad8d4e09a0eba6e3e2be819de8b574660f27e6 (patch) | |
tree | 723b8f33dfb05eded62fee3a5f657b095e15d163 | |
parent | a0461255c05c79cf6c78b967cf8f11167a5d06b4 (diff) |
doc: fix outgoingMessage.removeHeader() signature
Specify that `outgoingMessage.removeHeader()` takes a `name` argument
whose type is string.
PR-URL: https://github.com/nodejs/node/pull/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>
-rw-r--r-- | doc/api/http.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index d551b588c8f..708c6113bbb 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -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 |