Skip to content

doc: (http2) update push and trailers event with rawHeaders param#63259

Open
samuel871211 wants to merge 1 commit into
nodejs:mainfrom
samuel871211:pushAndTrailers
Open

doc: (http2) update push and trailers event with rawHeaders param#63259
samuel871211 wants to merge 1 commit into
nodejs:mainfrom
samuel871211:pushAndTrailers

Conversation

@samuel871211
Copy link
Copy Markdown
Contributor

@samuel871211 samuel871211 commented May 12, 2026

https://github.com/nodejs/node/blob/main/lib/internal/http2/core.js#L357

function onSessionHeaders
    if (reqAsync)
      reqAsync.runInAsyncScope(process.nextTick, null, emit, stream, event, obj, flags, headers);
    else
      process.nextTick(emit, stream, event, obj, flags, headers);

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/http2
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. http2 Issues or PRs related to the http2 subsystem. labels May 12, 2026
@samuel871211 samuel871211 force-pushed the pushAndTrailers branch 3 times, most recently from c1bb7b4 to a76836b Compare May 12, 2026 01:16
Copy link
Copy Markdown
Member

@pimterry pimterry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition, thanks for spotting & fixing this! 👍

@aduh95
Copy link
Copy Markdown
Contributor

aduh95 commented May 13, 2026

Can you please change the subsystem from http2: to doc: please?

@samuel871211 samuel871211 changed the title doc[http2]: update push and trailers event with rawHeaders param doc: (http2) update push and trailers event with rawHeaders param May 13, 2026
@lpinca
Copy link
Copy Markdown
Member

lpinca commented May 13, 2026

Can you please change the subsystem from http2: to doc: please?

@samuel871211, I'm pretty sure @aduh95 was referring to the commit message, not PR title.

Signed-off-by: Yu-Sheng Chen <samuel871211@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. http2 Issues or PRs related to the http2 subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants