Skip to content

http2: add writeProcessing to compat response - #67728

Open
inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:http2-compat-write-processing
Open

inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:http2-compat-write-processing

Conversation

@inoway46

Copy link
Copy Markdown
Contributor

Http2ServerResponse has no writeProcessing(), so code moving from HTTP/1 to the compat API fails with a TypeError when it calls it. This adds response.writeProcessing([callback]), which sends 102 through writeInformation() like writeContinue() does, including the callback from #67470.

Refs: #67705 (comment)
Refs: #29829

The HTTP/1 ServerResponse has writeProcessing() to send a 102
Processing response, but Http2ServerResponse does not, so code moving
to the compat API fails with a TypeError when it calls it.

Add writeProcessing([callback]), which sends 102 through
writeInformation() like writeContinue() does.

Refs: nodejs#29829
Refs: nodejs#67705 (comment)
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Assisted-by: Claude Code
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

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

@nodejs-github-bot nodejs-github-bot added http2 Issues and PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. labels Nov 23, 2026
@inoway46
inoway46 marked this pull request as ready for review November 23, 2026 14:07
@inoway46 inoway46 added the semver-minor PRs that contain new features and should be released in the next minor version. label Nov 23, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.55%. Comparing base (3cac7b9) to head (0065fd3).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #67728   +/-   ##
=======================================
  Coverage   90.55%   90.55%           
=======================================
  Files         801      801           
  Lines      284215   284220    +5     
  Branches    54883    54890    +7     
=======================================
+ Hits       257358   257386   +28     
+ Misses      17014    17010    -4     
+ Partials     9843     9824   -19     
Files with missing lines Coverage Δ
lib/internal/http2/compat.js 97.41% <100.00%> (+0.01%) ⬆️

... and 38 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@inoway46 inoway46 added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 23, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 23, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@inoway46 inoway46 added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Nov 23, 2026

@Ethan-Arrowood Ethan-Arrowood left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. http2 Issues and PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants