-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
Document protocol versions and negotiation mechanism #192
Comments
Currently httpx supports HTTP/2 via ALPN (meaning HTTPS-only) and does so automatically (We negotiate which protocol version to use before issuing requests). We could add a section in the documentation about which protocols we support and via what mechanism they are negotiated. Proxy support is planned, see #163 |
Looking a bit further into the future how do we plan to support HTTP/3? Unlike HTTP/2, support can only be determined after a first request completes, if the Alt-Svc header is present. https://http3-explained.haxx.se/en/h3-altsvc.html curl has flags which allow you to force the http version, do we want something similar? |
Yep, it's a completely different deal. I've got a couple thoughts on how we can support H3:
I'd prefer option 2 for multiple reasons, because I feel like the client session storage should be a feature regardless of whether we integrate HTTP/3 natively |
Yup, we'd want to go down this route. On a first pass we probably wouldn't bother storing info about "is an HTTP/3 service available for this host", but instead just rely on "Is there an existing H3 connection, or an existing upgradable H1/2 connection"? Our standard connection keep-alive policy would be enough to make sure that users would end up on HTTP/3 services where available.
Yes - we'll want something like an |
Do we really want it for the top level API? I'm talking about the |
Yes true - wasn't really thinking there. |
Closing this as most likely stale now - see HTTP/2 Support. |
I need to make a http2 get requests, i tried with hyper but having issues with headers my question is if i can make these same requests with httpx
python-hyper/hyper#416
I dont see in documentation anything about requests compatibility or about using http2 when doing the requests
also it has proxy support?
The text was updated successfully, but these errors were encountered: