GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: type improvement of file `http.md` · nodejs/node@8fd669c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • http.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.