-
-
Notifications
You must be signed in to change notification settings - Fork 34.9k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.
Description
Affected URL(s)
https://nodejs.org/docs/latest-v16.x/api/http.html#messageheaders
https://nodejs.org/docs/latest-v18.x/api/http.html#messageheaders
Description of the problem
With req.getHeaders(), you get an error:
$ node <name>.js
<go to: http://localhost:<port>/>
[...]
TypeError: req.getHeaders is not a function
with req.headers, you don't.
However, the example in the docs (both v16 and v18) shows the (non-working) use of:
console.log(request.getHeaders());
..under the sub-section message.headers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.