Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Jun 23, 2024
1 parent f8f6b32 commit 0dad466
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions examples/dev_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions examples/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 0dad466

Please sign in to comment.