Skip to content

Commit 9ac0bc3

Browse files
committed
feat(ie-net): implement HTTPS client with redirects and security #5
Working HTTP/HTTPS client using hyper + rustls with: - Redirect following (301/302/303/307/308) with cycle detection - HTTPS-only mode (blocks plain HTTP by default) - HTTPS→HTTP downgrade protection - Configurable timeout and max redirects - 17 unit tests + 1 ignored live integration test
1 parent a386c29 commit 9ac0bc3

8 files changed

Lines changed: 516 additions & 7 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ wasmtime = "31"
4545
hyper = { version = "1", features = ["full"] }
4646
hyper-util = { version = "0.1", features = ["full"] }
4747
http-body-util = "0.1"
48-
hyper-rustls = { version = "0.27", features = ["http2"] }
48+
hyper-rustls = { version = "0.27", features = ["http2", "webpki-roots"] }
4949
rustls = "0.23"
5050
url = "2"
5151
serde = { version = "1", features = ["derive"] }
5252
serde_json = "1"
53+
bytes = "1"

crates/ie-net/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ http-body-util.workspace = true
1818
hyper-rustls.workspace = true
1919
rustls.workspace = true
2020
url.workspace = true
21+
bytes.workspace = true

0 commit comments

Comments
 (0)