rc/client/http_client.rs: add experimental h2 upgrade code

This commit is contained in:
Dietmar Maurer
2019-04-29 11:57:58 +02:00
parent 5a2df00004
commit cf639a47de
3 changed files with 46 additions and 0 deletions

View File

@ -47,6 +47,7 @@ fn upgrade_h2upload(
println!("upgrade done");
server::handshake(conn)
.and_then(|h2| {
println!("Accept h2");
// Accept all inbound HTTP/2.0 streams sent over the
// connection.
h2.for_each(|(request, mut respond)| {