Skip to content

Commit f3f797f

Browse files
committed
refactor: update http config
1 parent 350ae63 commit f3f797f

File tree

4 files changed

+145
-267
lines changed

4 files changed

+145
-267
lines changed

Cargo.lock

Lines changed: 59 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ keywords = ["proxy", "pool", "rust", "ipv6"]
1111

1212
[dependencies]
1313
cidr = "0.2"
14-
hyper = { version = "1", features = ["full"] }
14+
hyper = { version = "0.14", features = [
15+
"client",
16+
"server",
17+
"http1",
18+
"runtime",
19+
] }
1520
hyper-util = { version = "0.1.8", features = ["client-legacy"] }
1621
tokio = { version = "1", features = ["full"] }
1722
tower = { version = "0.4", features = ["make"] }

src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ pub enum Error {
1010
#[error("From UTF8 error {0}")]
1111
FromUtf8Error(#[from] std::string::FromUtf8Error),
1212

13+
#[error("From hyper error {0}")]
14+
FromHyperError(#[from] hyper::Error),
15+
1316
#[error("Unsupported SOCKS version, {0}")]
1417
UnsupportedSocksVersion(u8),
1518

0 commit comments

Comments
 (0)