Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: fully migrate to fetch api using srvx #989

Merged
merged 6 commits into from
Mar 11, 2025
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Mar 10, 2025

This PR fully migrates h3 to be based on Web APIs (Request => Response).

Node.js and other platform compatibilities will be completely handled by lightweight srvx.

New app.serve API is exposed to easily start server (it is smart about platform running from using export conditions!)

Some optimizations for Node.js fast paths are removed (which should be investigated later). Stream errors also need to be better handled in Node.js (srvx issue likely)

afterResponse hook support is removed since with web APIs, there is no after return (it is up to platform to handle response)

@pi0 pi0 changed the title refactor!: fully migrate to web api using srvx refactor!: fully migrate to fetch api using srvx Mar 10, 2025
@pi0 pi0 marked this pull request as ready for review March 11, 2025 00:16
@pi0 pi0 merged commit 632952b into main Mar 11, 2025
3 checks passed
@pi0 pi0 deleted the refactor/full-web branch March 11, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant