-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.
Description
https://github.com/koajs/koa/blob/fcacb352208115e60fffe145394f904743dfa8c3/lib/context.js#L121 so we don't have to do hacks like this.
Would like at least one of the following:
// get all header keys
res.getHeaderKeys() // => ['content-type', 'content-length']
// unset all headers
res.unsetHeaders()
I think (from reading issues a while ago) that all the headers are stored in node as [ [<key>, <value>] ]
pairs. i don't mind making that public, either.
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.