Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Pinca <luigipinca@gmail.com>2022-04-10 11:08:56 +0300
committerGitHub <noreply@github.com>2022-04-10 11:08:56 +0300
commit13ad8d4e09a0eba6e3e2be819de8b574660f27e6 (patch)
tree723b8f33dfb05eded62fee3a5f657b095e15d163 /doc/api/http.md
parenta0461255c05c79cf6c78b967cf8f11167a5d06b4 (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>
Diffstat (limited to 'doc/api/http.md')
-rw-r--r--doc/api/http.md6
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