Skip to content

Commit 8fd669c

Browse files
samuel871211aduh95
authored andcommitted
doc: type improvement of file http.md
`outgoingMessage.setHeader` and `outgoingMessage.getHeader` section PR-URL: #58189 Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent f2fbcc5 commit 8fd669c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/http.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,7 @@ added: v0.4.0
21162116
-->
21172117

21182118
* `name` {string}
2119-
* Returns: {any}
2119+
* Returns: {number | string | string\[] | undefined}
21202120

21212121
Reads out a header that's already been queued but not sent to the client.
21222122
The name is case-insensitive. The type of the return value depends
@@ -2251,7 +2251,7 @@ added: v0.4.0
22512251
-->
22522252

22532253
* `name` {string}
2254-
* `value` {any}
2254+
* `value` {number | string | string\[]}
22552255
* Returns: {http.ServerResponse}
22562256

22572257
Returns the response object.
@@ -3202,7 +3202,7 @@ added: v0.4.0
32023202
-->
32033203
32043204
* `name` {string} Name of header
3205-
* Returns: {string | undefined}
3205+
* Returns: {number | string | string\[] | undefined}
32063206
32073207
Gets the value of the HTTP header with the given name. If that header is not
32083208
set, the returned value will be `undefined`.
@@ -3304,7 +3304,7 @@ added: v0.4.0
33043304
-->
33053305
33063306
* `name` {string} Header name
3307-
* `value` {any} Header value
3307+
* `value` {number | string | string\[]} Header value
33083308
* Returns: {this}
33093309
33103310
Sets a single header value. If the header already exists in the to-be-sent

0 commit comments

Comments
 (0)