From 04b33e778aa3d1352c82cffddc1154f44bd3ed20 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 20 Jan 2024 23:47:05 +0900 Subject: [PATCH] Update to http 1 (#153) --- Cargo.toml | 3 ++- tests/test_redirection.rs | 1 + tests/tools/proxy.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 4b6cc1b..ef9b47f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ base64 = {version = "0.21.2", optional = true} encoding_rs = {version = "0.8.31", optional = true} encoding_rs_io = {version = "0.1.7", optional = true} flate2 = {version = "1.0.24", default-features = false, optional = true} -http = "0.2.8" +http = "1" log = "0.4.17" mime = {version = "0.3.16", optional = true} multipart = {version = "0.18.0", default-features = false, features = ["client"], optional = true} @@ -36,6 +36,7 @@ anyhow = "1.0.61" env_logger = "0.10.0" futures = "0.3.23" futures-util = "0.3.23" +http02 = {package = "http", version = "0.2"} hyper = "0.14.20" lazy_static = "1.4.0" multipart = {version = "0.18.0", default-features = false, features = ["server"]} diff --git a/tests/test_redirection.rs b/tests/test_redirection.rs index 5e65523..1b521d0 100644 --- a/tests/test_redirection.rs +++ b/tests/test_redirection.rs @@ -1,6 +1,7 @@ use std::net::SocketAddr; use attohttpc::ErrorKind; +use http02 as http; use tokio_stream::wrappers::TcpListenerStream; use warp::Filter; diff --git a/tests/tools/proxy.rs b/tests/tools/proxy.rs index fcd7a31..6531646 100644 --- a/tests/tools/proxy.rs +++ b/tests/tools/proxy.rs @@ -5,6 +5,7 @@ use std::convert::Infallible; use std::net::SocketAddr; use futures_util::future::try_join; +use http02 as http; use hyper::server::conn::AddrIncoming; use hyper::service::{make_service_fn, service_fn}; use hyper::upgrade::Upgraded;