hyper-tls
hyper-tls copied to clipboard
Implement Support for ALPN
This adds support for ALPN via the newly released native-tls 0.2.7. With this hyper-tls can now automatically establish an HTTP2 connection with the server without having to force it from the client side.
Hi! Is there any update on this?
I'm trying to use HTTP/2 in reqwest and I found the issue https://github.com/seanmonstar/reqwest/issues/857. It says that the ALPN support only works in rustls, so we can only make HTTP/2 requests with rustls. Doing this requires manually enabling the rustls-tls
feature flag and adding use_rustls_tls
to ClientBuilder
.
IMHO this PR adds ALPN support for the native tls, which is the default tls backend of reqwest. So if this is merged, I guess we can make reqwest
support HTTP/2 without extra configuration.