-
Notifications
You must be signed in to change notification settings - Fork 100
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
Allow forcing HTTP version #68
Comments
Reqwest can force HTTP/2. |
This is more complicated than I thought. My link for forcing HTTP/1.1 in hyper is for servers, not clients. I can't figure out an existing way to force it for clients. It might require deeper work. hyperium/hyper#2433 looked relevant at first but I think that was about a different issue. |
I think seanmonstar/reqwest#1243 has added a way to set the HTTP version in reqwest. |
Hm. That offers a way to send HTTP/1.0 requests, but I don't think there's a way to disable upgrading to HTTP/2. |
I wonder if the HTTP version could be set by constructing a custom tls and setting its protocol via
Edit (2021-06-23): added some links |
reqwest 0.11.4 just released with |
This is what I noticed after briefly checking curl's verbose output when HTTP/1.0
HTTP/1.1
HTTP/2
HTTPS with no HTTP version
HTTP with no HTTP version
|
This PR introduces an option to disable HTTP/2 upgrade seanmonstar/reqwest#1292 |
xh v0.14.0 has been released with support for forcing a specific HTTP version 🎉 |
Hey, I really like this tool and use it quite a bit for debugging. As such, I sometimes need to specifically request a certain version of HTTP from a server. Could you add a mode to force the HTTP version? Curl has
--http1.0
,--http1.1
,--http2
,--http3
and I think that makes sense.Please consider adding those flags.
The text was updated successfully, but these errors were encountered: