mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
a0461255c0
commit
13ad8d4e09
1 file changed
+4
-2
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user