Skip to content

http.OutgoingMessage headers API #1873

@ChALkeR

Description

@ChALkeR

Atm, http.OutgoingMessage has the following headers-related methods:

  • .setHeader(name, value),
  • .getHeader(name, value),
  • .removeHeader(name).

There probably should be methods to:

All methods that modify headers should error if the headers were already sent.

Reasoning: https://gist.github.com/ChALkeR/26573ff704f987fd5304

Metadata

Metadata

Assignees

Labels

feature requestIssues that request new features to be added to Node.js.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.httpIssues or PRs related to the http subsystem.stalledIssues and PRs that are stalled.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions