René's URL Explorer Experiment


Title: http: add writeInformation to send arbitrary 1xx status codes by pimterry · Pull Request #63155 · nodejs/node · GitHub

Open Graph Title: http: add writeInformation to send arbitrary 1xx status codes by pimterry · Pull Request #63155 · nodejs/node

X Title: http: add writeInformation to send arbitrary 1xx status codes by pimterry · Pull Request #63155 · nodejs/node

Description: This provides a generic HTTP/1 API for 1xx responses, equivalent to our existing HTTP/2 additionalHeaders API. This supports any 1xx status code, except 101, which I've intentionally excluded - since it changes the protocol entirely, there's no possible way to unilaterally send that without breaking things later in our current API, so you just have to use 'upgrade' in that case. This fixes various past requests like: #22624 #27921 And acts as a nice workaround to solve: #7588 (All 3 closed as stale, not fixed) I'm also hoping it'll discourage usage of the private res._writeRaw method as a workaround for the existing limitations. We even did this in our own tests, see test/parallel/test-http-information-headers.js here. This is useful to support custom 1xx values (perfectly valid AFAICT, if unusual), proxies (who want to pass through data in a standard way, without having to separately handle each case individually as today) and to give us trivial general support for future standardized 1xx values, without needing a whole separate PR to add a new per-status API every time. The existing methods are refactored to use the generic method under the hood, and HTTP/2 compat uses additionalHeaders. There's one annoying inconsistency here: the H1 methods throw if we've already sent a final status code, while the H2 methods just no-op. I've kept that as-is and matched this in the new method to avoid a breaking change, but it would probably be best to align on throwing in both cases in a separate major bump.

Open Graph Description: This provides a generic HTTP/1 API for 1xx responses, equivalent to our existing HTTP/2 additionalHeaders API. This supports any 1xx status code, except 101, which I've intentionally excluded -...

X Description: This provides a generic HTTP/1 API for 1xx responses, equivalent to our existing HTTP/2 additionalHeaders API. This supports any 1xx status code, except 101, which I've intentionally exclud...

Opengraph URL: https://github.com/nodejs/node/pull/63155

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9761e40e-7f76-4cf0-f698-5da816ba3e69
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9AAA:228A12:2253BFB:309459D:6A4CE024
html-safe-nonce34df61e1b8a081674332e133ffd4e34e6eaf7c0b4a2b56f2bd63864babf67087
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUFBOjIyOEExMjoyMjUzQkZCOjMwOTQ1OUQ6NkE0Q0UwMjQiLCJ2aXNpdG9yX2lkIjoiNjg2MTQ1MDYzNzg3MzA0NTU0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2ebb03b6a40d3ca7f783805cfa921df3b34cd1586ee0e0d0af5dfb7d1f9fc017
hovercard-subject-tagpull_request:3638157788
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/63155/files
twitter:imagehttps://avatars.githubusercontent.com/u/1526883?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1526883?s=400&v=4
og:image:altThis provides a generic HTTP/1 API for 1xx responses, equivalent to our existing HTTP/2 additionalHeaders API. This supports any 1xx status code, except 101, which I've intentionally excluded -...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3eeb74f55ccd8a31bdaec6839577c592bbf7844c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/63155/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F63155%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F63155%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/63155/files
Reloadhttps://github.com/nodejs/node/pull/63155/files
Reloadhttps://github.com/nodejs/node/pull/63155/files
Please reload this pagehttps://github.com/nodejs/node/pull/63155/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/63155/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 961 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
pimterry:h1-additional-headershttps://github.com/pimterry/node/tree/h1-additional-headers
Conversation 8 https://github.com/nodejs/node/pull/63155
Commits 1 https://github.com/nodejs/node/pull/63155/commits
Checks 43 https://github.com/nodejs/node/pull/63155/checks
Files changed https://github.com/nodejs/node/pull/63155/files
Please reload this pagehttps://github.com/nodejs/node/pull/63155/files
http: add writeInformation to send arbitrary 1xx status codes https://github.com/nodejs/node/pull/63155/files#top
Show all changes 1 commit https://github.com/nodejs/node/pull/63155/files
af03c6b http: add writeInformation to send arbitrary 1xx status codes pimterry May 6, 2026 https://github.com/nodejs/node/pull/63155/commits/af03c6b4220ebabe56b319f77462226cbe52b84f
Clear filters https://github.com/nodejs/node/pull/63155/files
Please reload this pagehttps://github.com/nodejs/node/pull/63155/files
Please reload this pagehttps://github.com/nodejs/node/pull/63155/files
http.md https://github.com/nodejs/node/pull/63155/files#diff-d692ac4524379ec6a1201165e8ff8d3267c8130e07014e8221ebf7e6f80c6641
http2.md https://github.com/nodejs/node/pull/63155/files#diff-f63531002261f56a8c6723723d2b7e6d05ea9ec8d433195fdf7c47728f6e3700
_http_server.js https://github.com/nodejs/node/pull/63155/files#diff-2464899ab38c61dd42654fdb9658c75989cb6883b9c9d76613872a12d3fe2780
compat.js https://github.com/nodejs/node/pull/63155/files#diff-e241fc9fee7eaeaf021850ee74d273cc350099b52c548d7fdb85c8440eef1c8f
test-http-information-headers.js https://github.com/nodejs/node/pull/63155/files#diff-f6c67b3c8d44efe7b78798e35be2900d6b1b1ad25ce55f296c161083c2edd5da
test-http-write-information.js https://github.com/nodejs/node/pull/63155/files#diff-7877a1a4111dacc878d942186f199c74ee6b283f40f3480eb93619cca6223a2b
test-http2-compat-write-information.js https://github.com/nodejs/node/pull/63155/files#diff-712aa6542120c739a37c00f3bff113b6d6c324ad3ed4af43474f0f3dc39bc0c6
doc/api/http.mdhttps://github.com/nodejs/node/pull/63155/files#diff-d692ac4524379ec6a1201165e8ff8d3267c8130e07014e8221ebf7e6f80c6641
View file https://github.com/pimterry/node/blob/af03c6b4220ebabe56b319f77462226cbe52b84f/doc/api/http.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63155/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63155/files#diff-d692ac4524379ec6a1201165e8ff8d3267c8130e07014e8221ebf7e6f80c6641
https://github.com/nodejs/node/pull/63155/files#diff-d692ac4524379ec6a1201165e8ff8d3267c8130e07014e8221ebf7e6f80c6641
https://github.com/nodejs/node/pull/63155/files#diff-d692ac4524379ec6a1201165e8ff8d3267c8130e07014e8221ebf7e6f80c6641
https://github.com/nodejs/node/pull/63155/files#diff-d692ac4524379ec6a1201165e8ff8d3267c8130e07014e8221ebf7e6f80c6641
doc/api/http2.mdhttps://github.com/nodejs/node/pull/63155/files#diff-f63531002261f56a8c6723723d2b7e6d05ea9ec8d433195fdf7c47728f6e3700
View file https://github.com/pimterry/node/blob/af03c6b4220ebabe56b319f77462226cbe52b84f/doc/api/http2.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63155/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63155/files#diff-f63531002261f56a8c6723723d2b7e6d05ea9ec8d433195fdf7c47728f6e3700
https://github.com/nodejs/node/pull/63155/files#diff-f63531002261f56a8c6723723d2b7e6d05ea9ec8d433195fdf7c47728f6e3700
https://github.com/nodejs/node/pull/63155/files#diff-f63531002261f56a8c6723723d2b7e6d05ea9ec8d433195fdf7c47728f6e3700
https://github.com/nodejs/node/pull/63155/files#diff-f63531002261f56a8c6723723d2b7e6d05ea9ec8d433195fdf7c47728f6e3700
lib/_http_server.jshttps://github.com/nodejs/node/pull/63155/files#diff-2464899ab38c61dd42654fdb9658c75989cb6883b9c9d76613872a12d3fe2780
View file https://github.com/pimterry/node/blob/af03c6b4220ebabe56b319f77462226cbe52b84f/lib/_http_server.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63155/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63155/files#diff-2464899ab38c61dd42654fdb9658c75989cb6883b9c9d76613872a12d3fe2780
https://github.com/nodejs/node/pull/63155/files#diff-2464899ab38c61dd42654fdb9658c75989cb6883b9c9d76613872a12d3fe2780
https://github.com/nodejs/node/pull/63155/files#diff-2464899ab38c61dd42654fdb9658c75989cb6883b9c9d76613872a12d3fe2780
lib/internal/http2/compat.jshttps://github.com/nodejs/node/pull/63155/files#diff-e241fc9fee7eaeaf021850ee74d273cc350099b52c548d7fdb85c8440eef1c8f
View file https://github.com/pimterry/node/blob/af03c6b4220ebabe56b319f77462226cbe52b84f/lib/internal/http2/compat.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63155/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63155/files#diff-e241fc9fee7eaeaf021850ee74d273cc350099b52c548d7fdb85c8440eef1c8f
https://github.com/nodejs/node/pull/63155/files#diff-e241fc9fee7eaeaf021850ee74d273cc350099b52c548d7fdb85c8440eef1c8f
https://github.com/nodejs/node/pull/63155/files#diff-e241fc9fee7eaeaf021850ee74d273cc350099b52c548d7fdb85c8440eef1c8f
test/parallel/test-http-information-headers.jshttps://github.com/nodejs/node/pull/63155/files#diff-f6c67b3c8d44efe7b78798e35be2900d6b1b1ad25ce55f296c161083c2edd5da
View file https://github.com/pimterry/node/blob/af03c6b4220ebabe56b319f77462226cbe52b84f/test/parallel/test-http-information-headers.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63155/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/63155/files#diff-f6c67b3c8d44efe7b78798e35be2900d6b1b1ad25ce55f296c161083c2edd5da
https://github.com/nodejs/node/pull/63155/files#diff-f6c67b3c8d44efe7b78798e35be2900d6b1b1ad25ce55f296c161083c2edd5da
test/parallel/test-http-write-information.jshttps://github.com/nodejs/node/pull/63155/files#diff-7877a1a4111dacc878d942186f199c74ee6b283f40f3480eb93619cca6223a2b
View file https://github.com/pimterry/node/blob/af03c6b4220ebabe56b319f77462226cbe52b84f/test/parallel/test-http-write-information.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/63155/{{ revealButtonHref }}
Please reload this pagehttps://github.com/nodejs/node/pull/63155/files
Please reload this pagehttps://github.com/nodejs/node/pull/63155/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.