Skip to content

Commit 13ad8d4

Browse files
authored
doc: fix outgoingMessage.removeHeader() signature
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>
1 parent a046125 commit 13ad8d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/api/http.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2655,12 +2655,14 @@ it inherits from `Stream`.
26552655

26562656
The User should not call this function directly.
26572657

2658-
### `outgoingMessage.removeHeader()`
2658+
### `outgoingMessage.removeHeader(name)`
26592659

26602660
<!-- YAML
2661-
added: v0.4.0
2661+
added: v0.4.0
26622662
-->
26632663

2664+
* `name` {string} Header name
2665+
26642666
Removes a header that is queued for implicit sending.
26652667

26662668
```js

0 commit comments

Comments
 (0)