Skip to content

Commit

Permalink
refactored http implementation and migrate to hyper 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Nov 26, 2023
1 parent 84101ea commit 35b0e49
Show file tree
Hide file tree
Showing 15 changed files with 949 additions and 866 deletions.
32 changes: 14 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/shadowsocks-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ local-dns-relay = ["local-dns"]
# Currently is only used in Android
local-flow-stat = ["local"]
# Enable HTTP protocol for sslocal
local-http = ["local", "hyper", "tower"]
local-http = ["local", "hyper", "http-body-util"]
local-http-native-tls = ["local-http", "tokio-native-tls", "native-tls"]
local-http-native-tls-vendored = [
"local-http-native-tls",
Expand Down Expand Up @@ -144,8 +144,8 @@ async-trait = "0.1"
socket2 = { version = "0.5", features = ["all"] }
libc = "0.2.141"

hyper = { version = "1.0.1", optional = true, features = ["full"] }
tower = { version = "0.4", optional = true }
hyper = { version = "1.0", optional = true, features = ["full"] }
http-body-util = { version = "0.1", optional = true }

hickory-resolver = { version = "0.24", optional = true, features = [
"serde-config",
Expand Down
45 changes: 0 additions & 45 deletions crates/shadowsocks-service/src/local/http/client_cache.rs

This file was deleted.

87 changes: 0 additions & 87 deletions crates/shadowsocks-service/src/local/http/connector.rs

This file was deleted.

Loading

0 comments on commit 35b0e49

Please sign in to comment.