Skip to content

http2: add headersDistinct to Http2ServerRequest fixes #64060#64071

Open
Shivay-98 wants to merge 1 commit into
nodejs:mainfrom
Shivay-98:main
Open

http2: add headersDistinct to Http2ServerRequest fixes #64060#64071
Shivay-98 wants to merge 1 commit into
nodejs:mainfrom
Shivay-98:main

Conversation

@Shivay-98

Copy link
Copy Markdown

Adds headersDistinct to Http2ServerRequest to improve parity with
http.IncomingMessage.

The implementation mirrors IncomingMessage.headersDistinct by
lazily constructing a null-prototype object from rawHeaders and
preserving all header values as arrays.

Includes tests covering:

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http2
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added http2 Issues or PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. labels Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http2 Issues or PRs related to the http2 subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

headersDistinct for http2 requests

2 participants