-
Notifications
You must be signed in to change notification settings - Fork 546
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 #547
Comments
I've recently been asked how I would approach adding HTTP2 support to Undici. The starting point should be to implement an HTTP2 version of Line 71 in 252b676
|
I will make an attempt to work on this in a fork, as HTTP/2 support is one of my only qualms with undici (great job so far team). I will post an update here with my progress and I hope to submit a PR. |
Go for it! |
I will be waiting on the following pull requests to complete their lifecycle before I begin, to avoid risking late-stage merge conflicts: |
I think this could be started right now without waiting for those. I would start writing an Http2Client that wraps a |
That's fine by me, then. I just questioned whether, given that the PRs at present change the structure and workings of some parts of the client, you'd want the HTTP/2 variants to inherit those improvements and thus need to wait for a merge, but if not I can start tonight when I get home. |
There won't be much conflict to start with. There will be as you move up to implement Http2Pool and then a cross-protocol Agent. |
It seems like the most effective solution, then, would be to start it and then follow along with the PRs when I get to those parts so I can ensure the development of the HTTP/2 variants stays up to date and won't create any delays or merge conflicts when the time comes. |
Yes exactly! |
Alright, I'll start with |
Have you got any progress @Nytelife26 ? How is it going? |
I think with #620 this should be even easier. You just need to create a new client implementing the |
Apologies, I wasn't able to start on it just yet, been very busy with college. I'll be doing that now since I have free time. And, yes, I love what you guys did with unifying under |
duplicate #399 |
Adding http2 might be easier than I thought.
See, https://github.com/devsnek/snekfetch/blob/master/src/node/socket.js
The text was updated successfully, but these errors were encountered: