todo: add http2-only client for h2c case

This commit is contained in:
Jun Kurihara 2023-08-07 22:18:54 +09:00
commit f2c6d738b6
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
5 changed files with 26 additions and 14 deletions

View file

@ -70,6 +70,7 @@ where
.enable_http2()
.build();
// TODO: HTTP2 only client is needed for http2 cleartext case
let msg_handler = HttpMessageHandlerBuilder::default()
.forwarder(Arc::new(Client::builder().build::<_, hyper::Body>(connector)))
.globals(globals.clone())