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

http2 support tracker #420

Open
3 tasks
pi0 opened this issue Jul 24, 2024 · 2 comments
Open
3 tasks

http2 support tracker #420

pi0 opened this issue Jul 24, 2024 · 2 comments
Labels
enhancement New feature or request pending triage

Comments

@pi0
Copy link
Member

pi0 commented Jul 24, 2024

there is not a direct thing we can do with ofetch to support http2 since ofetch depends on native runtime fetch as a wrapper but here are trackers:

@pi0 pi0 added enhancement New feature or request pending triage labels Jul 24, 2024
@iiAku
Copy link

iiAku commented Jul 24, 2024

Do you have any idea how complicated would be to replace undici vs native fetch in ofetch ?

h2 support was added in undici at version 5.24.0 here: https://github.com/nodejs/undici/releases/tag/v5.24.0
We are now 6.19.3 if I'm not mistaken native fetch leverage undici behind

Your first checkbox Node.js - undici would definitely solve everything ofetch wise though without having to change anything.

@pi0
Copy link
Member Author

pi0 commented Jul 25, 2024

We are already partially pre bundling undici (via node-fetch-native) for proxy support and in next major it is gonna be merged. Honestly i prefer to avoid doing this and wait for Node.js stable releases bundle a known stable version of undici (for proxy and h2 aupport) but lets see how long it takes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending triage
Projects
None yet
Development

No branches or pull requests

2 participants