Skip to content

Commit fda2418

Browse files
committed
doc: type improvement of file http.md, outgoingMessage.setHeader and outgoingMessage.getHeader section
1 parent 7e24ebc commit fda2418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/http.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@ added: v0.4.0
31713171
-->
31723172
31733173
* `name` {string} Name of header
3174-
* Returns: {string | undefined}
3174+
* Returns: {number | string | string\[] | undefined}
31753175
31763176
Gets the value of the HTTP header with the given name. If that header is not
31773177
set, the returned value will be `undefined`.
@@ -3273,7 +3273,7 @@ added: v0.4.0
32733273
-->
32743274
32753275
* `name` {string} Header name
3276-
* `value` {any} Header value
3276+
* `value` {number | string | string\[]} Header value
32773277
* Returns: {this}
32783278
32793279
Sets a single header value. If the header already exists in the to-be-sent

0 commit comments

Comments
 (0)