hyper-tls icon indicating copy to clipboard operation
hyper-tls copied to clipboard

Implement Support for ALPN

Open CryZe opened this issue 3 years ago • 1 comments

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.

CryZe avatar Dec 30 '20 00:12 CryZe

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 reqwestsupport HTTP/2 without extra configuration.

Enter-tainer avatar Jun 11 '22 09:06 Enter-tainer