Skip to content

Commit 9df91e5

Browse files
samuel871211targos
authored andcommitted
doc: type improvement of file http.md
`outgoingMessage.setHeader` and `outgoingMessage.getHeader` section PR-URL: #58189 Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 3c62b38 commit 9df91e5

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
@@ -2140,7 +2140,7 @@ added: v0.4.0
21402140
-->
21412141

21422142
* `name` {string}
2143-
* Returns: {any}
2143+
* Returns: {number | string | string\[] | undefined}
21442144

21452145
Reads out a header that's already been queued but not sent to the client.
21462146
The name is case-insensitive. The type of the return value depends
@@ -2275,7 +2275,7 @@ added: v0.4.0
22752275
-->
22762276

22772277
* `name` {string}
2278-
* `value` {any}
2278+
* `value` {number | string | string\[]}
22792279
* Returns: {http.ServerResponse}
22802280

22812281
Returns the response object.
@@ -3226,7 +3226,7 @@ added: v0.4.0
32263226
-->
32273227
32283228
* `name` {string} Name of header
3229-
* Returns: {string | undefined}
3229+
* Returns: {number | string | string\[] | undefined}
32303230
32313231
Gets the value of the HTTP header with the given name. If that header is not
32323232
set, the returned value will be `undefined`.
@@ -3328,7 +3328,7 @@ added: v0.4.0
33283328
-->
33293329
33303330
* `name` {string} Header name
3331-
* `value` {any} Header value
3331+
* `value` {number | string | string\[]} Header value
33323332
* Returns: {this}
33333333
33343334
Sets a single header value. If the header already exists in the to-be-sent

0 commit comments

Comments
 (0)