diff --git a/README.md b/README.md index 5d87da6..f89ba68 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ async fn main() { Some(root_cert), // This is the connector that will be used to connect to the upstream server from proxy tokio_native_tls::native_tls::TlsConnector::builder() + // You must set ALPN if you want to support HTTP/2 .request_alpns(&["h2", "http/1.1"]) .build() .unwrap(), diff --git a/examples/dev_proxy.rs b/examples/dev_proxy.rs index e82c066..dc040a3 100644 --- a/examples/dev_proxy.rs +++ b/examples/dev_proxy.rs @@ -76,6 +76,7 @@ async fn main() { Some(root_cert), // This is the connector that will be used to connect to the upstream server from proxy tokio_native_tls::native_tls::TlsConnector::builder() + // You must set ALPN if you want to support HTTP/2 .request_alpns(&["h2", "http/1.1"]) .build() .unwrap(), diff --git a/examples/proxy.rs b/examples/proxy.rs index e021d91..4dee3fd 100644 --- a/examples/proxy.rs +++ b/examples/proxy.rs @@ -72,6 +72,7 @@ async fn main() { Some(root_cert), // This is the connector that will be used to connect to the upstream server from proxy tokio_native_tls::native_tls::TlsConnector::builder() + // You must set ALPN if you want to support HTTP/2 .request_alpns(&["h2", "http/1.1"]) .build() .unwrap(),