-
the lower actix-web is supported,but highter cann't. |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Dec 6, 2022
Replies: 1 comment
-
Update, support for this was added in actix-http v3.3: https://docs.rs/actix-http/latest/actix_http/struct.HttpService.html#method.tcp_auto_h2c This is true. Without some form of protocol negotiation like that this is provided by TLS ALPN then we cannot select an appropriate HTTP version to use. Inspecting bytes is possible but would be unnecessary overhead for all Actix Web servers. I do know it is possible to do at the user level but would need to dig up the code to make it work. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robjtede
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update, support for this was added in actix-http v3.3: https://docs.rs/actix-http/latest/actix_http/struct.HttpService.html#method.tcp_auto_h2c
This is true. Without some form of protocol negotiation like that this is provided by TLS ALPN then we cannot select an appropriate HTTP version to use. Inspecting bytes is possible but would be unnecessary overhead for all Actix Web servers. I do know it is possible to do at the user level but would need to dig up the code to make it work.