You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: get current response headers or unset them alll #4770
duplicateIssues and PRs that are duplicates of other issues or PRs.feature requestIssues requesting new Node.js features.httpIssues and PRs related to the http subsystem.
// get all header keysres.getHeaderKeys()// => ['content-type', 'content-length']// unset all headersres.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.
duplicateIssues and PRs that are duplicates of other issues or PRs.feature requestIssues requesting new Node.js features.httpIssues and PRs related to the http subsystem.
Activity
jonathanong commentedon Jan 19, 2016
oh sorry, didn't read #1873 thoroughly enough