Skip to content

Commit 04b33e7

Browse files
authored
Update to http 1 (#153)
1 parent bea909a commit 04b33e7

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ base64 = {version = "0.21.2", optional = true}
1818
encoding_rs = {version = "0.8.31", optional = true}
1919
encoding_rs_io = {version = "0.1.7", optional = true}
2020
flate2 = {version = "1.0.24", default-features = false, optional = true}
21-
http = "0.2.8"
21+
http = "1"
2222
log = "0.4.17"
2323
mime = {version = "0.3.16", optional = true}
2424
multipart = {version = "0.18.0", default-features = false, features = ["client"], optional = true}
@@ -36,6 +36,7 @@ anyhow = "1.0.61"
3636
env_logger = "0.10.0"
3737
futures = "0.3.23"
3838
futures-util = "0.3.23"
39+
http02 = {package = "http", version = "0.2"}
3940
hyper = "0.14.20"
4041
lazy_static = "1.4.0"
4142
multipart = {version = "0.18.0", default-features = false, features = ["server"]}

tests/test_redirection.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::net::SocketAddr;
22

33
use attohttpc::ErrorKind;
4+
use http02 as http;
45
use tokio_stream::wrappers::TcpListenerStream;
56
use warp::Filter;
67

tests/tools/proxy.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::convert::Infallible;
55
use std::net::SocketAddr;
66

77
use futures_util::future::try_join;
8+
use http02 as http;
89
use hyper::server::conn::AddrIncoming;
910
use hyper::service::{make_service_fn, service_fn};
1011
use hyper::upgrade::Upgraded;

0 commit comments

Comments
 (0)