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>
This commit is contained in:
Luigi Pinca authored and GitHub committed 2022-04-10 09:08:56 +01:00
1 parent a0461255c0
commit 13ad8d4e09
1 file changed
+4 -2
+4 -2
View File
@@ -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