Skip to content

Commit 85db70b

Browse files
authored
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 60c1fbc commit 85db70b

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
@@ -2142,7 +2142,7 @@ added: v0.4.0
21422142
-->
21432143

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

21472147
Reads out a header that's already been queued but not sent to the client.
21482148
The name is case-insensitive. The type of the return value depends
@@ -2277,7 +2277,7 @@ added: v0.4.0
22772277
-->
22782278

22792279
* `name` {string}
2280-
* `value` {any}
2280+
* `value` {number | string | string\[]}
22812281
* Returns: {http.ServerResponse}
22822282

22832283
Returns the response object.
@@ -3228,7 +3228,7 @@ added: v0.4.0
32283228
-->
32293229
32303230
* `name` {string} Name of header
3231-
* Returns: {string | undefined}
3231+
* Returns: {number | string | string\[] | undefined}
32323232
32333233
Gets the value of the HTTP header with the given name. If that header is not
32343234
set, the returned value will be `undefined`.
@@ -3330,7 +3330,7 @@ added: v0.4.0
33303330
-->
33313331
33323332
* `name` {string} Header name
3333-
* `value` {any} Header value
3333+
* `value` {number | string | string\[]} Header value
33343334
* Returns: {this}
33353335
33363336
Sets a single header value. If the header already exists in the to-be-sent

0 commit comments

Comments
 (0)