GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib: deprecate _http_* by bjohansebas · Pull Request #58535 · nodejs/node

Conversation

@bjohansebas

@bjohansebas bjohansebas commented May 31, 2025

Copy link
Copy Markdown
Member

close #58534

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

metcoder95 and avivkeller reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@nodejs-github-bot

nodejs-github-bot commented May 31, 2025

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added http Issues and PRs related to the http subsystem. needs-ci PRs that need a full CI run. labels May 31, 2025
@bjohansebas bjohansebas added the wip Issues and PRs that are still a work in progress. label May 31, 2025
@bjohansebas
bjohansebas force-pushed the http_internals branch 2 times, most recently from 11b6878 to 329d0a0 Compare May 31, 2025 20:17
@bjohansebas bjohansebas added semver-major PRs that contain breaking changes and should be released in the next major version. deprecations Issues and PRs related to deprecations. labels May 31, 2025
@bjohansebas
bjohansebas marked this pull request as ready for review May 31, 2025 21:29
@bjohansebas
bjohansebas requested review from dario-piotrowicz, jasnell and mcollina May 31, 2025 21:29
@bjohansebas bjohansebas removed the wip Issues and PRs that are still a work in progress. label May 31, 2025
@bjohansebas
bjohansebas force-pushed the http_internals branch 2 times, most recently from 0ec4ccc to bd305a8 Compare May 31, 2025 23:17
jasnell
jasnell reviewed May 31, 2025
View reviewed changes
Comment thread benchmark/http/check_is_http_token.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented May 31, 2025

Copy link
Copy Markdown
Member

@nodejs/http @mcollina

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented May 31, 2025

Copy link
Copy Markdown
Member

This one might need a Documentation-only deprecation to start. It's likely going to be too disruptive to go straight to a Runtime deprecation. https://github.com/search?type=code&q=%22require%28%27_http%22

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dario-piotrowicz
dario-piotrowicz reviewed May 31, 2025
View reviewed changes

@dario-piotrowicz dario-piotrowicz left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Yay! thanks for doing this! 🫶

(with this all pesky _modules will be runtime deprecated! 💪)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bjohansebas reacted with heart emoji
All reactions
  • ❤️ 1 reaction
Comment thread test/parallel/test-warn-http-server-deprecation.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread test/parallel/test-https-server-close-destroy-timeout.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread benchmark/http/check_is_http_token.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread benchmark/http/check_invalid_header_char.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas

bjohansebas commented May 31, 2025

Copy link
Copy Markdown
Member Author

This one might need a Documentation-only deprecation to start. It's likely going to be too disruptive to go straight to a Runtime deprecation. https://github.com/search?type=code&q=%22require%28%27_http%22

Most of them seem to be just forks of Node.js, rather than actually using these undocumented modules.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented May 31, 2025

Copy link
Copy Markdown
Member

Most of them seem to be just forks of Node.js....

I wish that were the case. While there are a good number of forks in those search results, it's plain to see that there are a non-trivial number of other projects requiring "_http_common" and friends. We need to assess just how disruptive this will be... but don't get me wrong, I am in favor of deprecated these but it might need to be a slower path. I'd like @nodejs/http folks to weigh in.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Jun 1, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.38903% with 160 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.47%. Comparing base (a7a96c2) to head (9c2d4ba).
⚠️ Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/http/server.js 96.64% 49 Missing and 3 partials ⚠️
lib/internal/http/client.js 97.39% 34 Missing ⚠️
lib/internal/http/outgoing.js 97.98% 28 Missing and 2 partials ⚠️
lib/internal/http/agent.js 96.64% 23 Missing and 1 partial ⚠️
lib/internal/http/incoming.js 97.66% 14 Missing and 1 partial ⚠️
lib/internal/http/common.js 98.55% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #58535      +/-   ##
==========================================
- Coverage   90.47%   90.47%   -0.01%     
==========================================
  Files         791      797       +6     
  Lines      277088   277354     +266     
  Branches    53286    53292       +6     
==========================================
+ Hits       250703   250943     +240     
- Misses      16805    16814       +9     
- Partials     9580     9597      +17     
Files with missing lines Coverage Δ
lib/_http_agent.js 100.00% <100.00%> (+3.35%) ⬆️
lib/_http_client.js 100.00% <100.00%> (+2.60%) ⬆️
lib/_http_common.js 100.00% <100.00%> (+1.44%) ⬆️
lib/_http_incoming.js 100.00% <100.00%> (+2.33%) ⬆️
lib/_http_outgoing.js 100.00% <100.00%> (+2.01%) ⬆️
lib/_http_server.js 100.00% <100.00%> (+3.22%) ⬆️
lib/http.js 99.11% <100.00%> (ø)
lib/https.js 97.21% <100.00%> (ø)
lib/internal/child_process.js 95.12% <100.00%> (ø)
lib/internal/http2/compat.js 97.25% <100.00%> (+<0.01%) ⬆️
... and 8 more

... and 30 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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dario-piotrowicz
dario-piotrowicz reviewed Jun 1, 2025
View reviewed changes
Comment thread benchmark/http/check_invalid_header_char.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread lib/_http_common.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread test/parallel/test-https-server-close-destroy-timeout.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas

bjohansebas commented Jun 14, 2025

Copy link
Copy Markdown
Member Author

@nodejs/http what are your recommendations?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas bjohansebas mentioned this pull request Jul 31, 2025
lib: docs deprecate _http_* #59293
Merged
bjohansebas added a commit to bjohansebas/node that referenced this pull request Jul 31, 2025
@bjohansebas
lib: docs deprecate _http_*
e947fb5
Ref nodejs#58535

Signed-off-by: Sebastian Beltran <[email protected]>
nodejs-github-bot pushed a commit that referenced this pull request Aug 2, 2025
@bjohansebas
lib: docs deprecate _http_*
e4b748a
Ref #58535

Signed-off-by: Sebastian Beltran <[email protected]>
PR-URL: #59293
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Ethan Arrowood <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor
Failed to start CI
- Validating Jenkins credentials
✔  Jenkins credentials valid
- Querying data for job/node-test-pull-request/71184/
[SyntaxError: Unexpected token '<', ..."    
  https://github.com/nodejs/node/actions/runs/29350483155
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas bjohansebas added request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. and removed request-ci-failed Starting CI with the request-ci label failed and requires manual intervention. labels Jul 14, 2026
@github-actions github-actions Bot added request-ci-failed Starting CI with the request-ci label failed and requires manual intervention. and removed request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Jul 14, 2026
@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor
Failed to start CI
- Validating Jenkins credentials
✔  Jenkins credentials valid
- Querying data for job/node-test-pull-request/71184/
[SyntaxError: Unexpected token '<', ..."    
  https://github.com/nodejs/node/actions/runs/29363308681
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aduh95

aduh95 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

There are conflicts to fix

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aduh95 aduh95 removed fast-track PRs proposed for a shorter-than-standard waiting period before landing. author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci-failed Starting CI with the request-ci label failed and requires manual intervention. labels Aug 25, 2026
@bjohansebas
bjohansebas force-pushed the http_internals branch from eb2643c to 7c8bbe0 Compare October 12, 2026 18:51
@bjohansebas
lib: deprecate _http_*
9c2d4ba
Signed-off-by: Sebastian Beltran <[email protected]>
@bjohansebas
bjohansebas force-pushed the http_internals branch from 7c8bbe0 to 9c2d4ba Compare October 12, 2026 18:52
@bjohansebas bjohansebas added the review wanted PRs that need review. label Oct 12, 2026
mcollina
mcollina approved these changes Oct 12, 2026
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
avivkeller
avivkeller approved these changes Oct 12, 2026
View reviewed changes

@avivkeller avivkeller left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gurgunday
gurgunday approved these changes Oct 12, 2026
View reviewed changes
@bjohansebas bjohansebas added request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. and removed http Issues and PRs related to the http subsystem. labels Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

The notable-change PRs with changes that should be highlighted in changelogs. label has been added by @bjohansebas.

Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78396/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Landed in 12ce819

gurgunday reacted with rocket emoji
All reactions
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@RafaelGSS RafaelGSS mentioned this pull request Oct 27, 2026
2026-10-28, Version 27.0.0-alpha.0.0.0 (Alpha) #67062
Merged
@emyei emyei mentioned this pull request Oct 28, 2026
http: forward-port pending-read fix (CVE-2026-105481) to lib/internal/http/agent.js #67073
Merged
3 of 4 tasks
@ak-bugsee ak-bugsee mentioned this pull request Oct 30, 2026
Compat heads-up: Node.js 27.0.0-alpha.0 (async_hooks/domain, null-prototype req.headers, V8 15.6) bugsee/bugsee-javascript#168
Open
@bjohansebas bjohansebas mentioned this pull request Oct 30, 2026
feat(DEP0199): migrate internal HTTP imports to node:http nodejs/userland-migrations#556
Open
@MikeMcC399 MikeMcC399 mentioned this pull request Oct 31, 2026
doc: correct DEP0199 runtime deprecation listing #67167
Merged
@MikeMcC399

MikeMcC399 commented Nov 2, 2026

Copy link
Copy Markdown
Member

#67167 submitted to correct the documentation on DEP0199.

It should be classed as Runtime deprecation.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 17, 2026
tools: apply http lint rule to lib/internal/http #67529
Merged
[v26.x] lib: move _http_* to internal/http #67546
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell left review comments
@dario-piotrowicz dario-piotrowicz dario-piotrowicz left review comments
@mcollina mcollina mcollina approved these changes
@pimterry pimterry pimterry approved these changes
@anonrig anonrig anonrig approved these changes
@avivkeller avivkeller avivkeller approved these changes
@gurgunday gurgunday gurgunday approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. deprecations Issues and PRs related to deprecations. http Issues and PRs related to the http subsystem. needs-ci PRs that need a full CI run. notable-change PRs with changes that should be highlighted in changelogs. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Move _http_* to be internal APIs.

Uh oh!

There was an error while loading. Please reload this page.

12 participants

@bjohansebas @nodejs-github-bot @jasnell @mcollina @aduh95 @MikeMcC399 @pimterry @anonrig @avivkeller @dario-piotrowicz @gurgunday @RafaelGSS
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.