Skip to content

inspector: capture HTTP body before decoding#64496

Open
Archkon wants to merge 2 commits into
nodejs:mainfrom
Archkon:inspector
Open

inspector: capture HTTP body before decoding#64496
Archkon wants to merge 2 commits into
nodejs:mainfrom
Archkon:inspector

Conversation

@Archkon

@Archkon Archkon commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Fixes: #64494

Capture HTTP response body chunks before stream decoding so network
inspection receives the original bytes when user code calls
response.setEncoding().

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/inspector
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added http Issues or PRs related to the http subsystem. inspector Issues and PRs related to the V8 inspector protocol needs-ci PRs that need a full CI run. labels Jul 14, 2026
@Archkon

Archkon commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@legendecas Could you review this pr and I don't completely know the context for the commit a78f7d9
And whethe my commit would cause some regression ?

@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.23%. Comparing base (61896fe) to head (b6de155).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #64496   +/-   ##
=======================================
  Coverage   90.23%   90.23%           
=======================================
  Files         741      741           
  Lines      241688   241695    +7     
  Branches    45550    45550           
=======================================
+ Hits       218084   218097   +13     
+ Misses      15157    15151    -6     
  Partials     8447     8447           
Files with missing lines Coverage Δ
lib/_http_common.js 99.42% <100.00%> (+<0.01%) ⬆️
lib/internal/inspector/network_http.js 95.70% <100.00%> (ø)

... and 27 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.

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

Labels

http Issues or PRs related to the http subsystem. inspector Issues and PRs related to the V8 inspector protocol needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inspector: response.setEncoding() causes response.on('data') never triggered when --experimental-network-inspection is enabled

2 participants