-
-
Notifications
You must be signed in to change notification settings - Fork 882
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
How to force enable HTTP/2.0 #3261
Comments
It looks like this is missing from our docs at the moment... https://www.python-httpx.org/http2/ (Pull requests welcome) |
Thaanks! It's working now pr: #3262 |
Does it mean passing http2=True (with http1 being True by default) doesn't do anything? |
@rafalkrupinski - No... I've added a clarifying comment against the pull request.
On reflection I think that we ought to be noting in the documentation that HTTP/2 is typically only supported for |
So OP was expecting httpx would initiate the upgrade with HTTP headers, while it actually negotiates it over alpn. thanks! |
I have an
HTTP/2.0
server and I want to ping/test it using an httpx client.I use this docs: https://www.python-httpx.org/http2/
And the client send this request
The server needs a
HTTP2-Settings
header to send a upgrade response ("RFC: A request that upgrades from HTTP/1.1 to HTTP/2 MUST include exactly one "HTTP2-Settings" header field")See RFC: https://datatracker.ietf.org/doc/html/rfc7540#section-3.2 and https://datatracker.ietf.org/doc/html/rfc7540#section-3.2.1
If the server responds with
101 Switching Protocols
the client is not ready for this.Question: How can my server upgrade httpx client to
HTTP/2.0
?My client:
The text was updated successfully, but these errors were encountered: