[dependencies.bytes]
version = "1.7.1"
[dependencies.futures]
version = "0.3.29"
[dependencies.http-body-util]
version = "0.1.0"
[dependencies.hyper]
features = ["http1", "http2", "server", "client"]
version = "1.0.1"
[dependencies.hyper-util]
features = ["tokio"]
version = "0.1.11"
[dependencies.moka]
features = ["sync"]
version = "0.12.8"
[dependencies.native-tls]
features = ["alpn"]
optional = true
version = "0.2.12"
[dependencies.rcgen]
version = "0.14.3"
[dependencies.thiserror]
version = "2.0.12"
[dependencies.tokio]
features = ["macros", "rt", "rt-multi-thread", "parking_lot", "io-util", "net"]
version = "1.44.1"
[dependencies.tokio-native-tls]
optional = true
version = "0.3.1"
[dependencies.tokio-rustls]
version = "0.26.1"
[dependencies.tracing]
version = "0.1.40"
[dependencies.webpki-roots]
optional = true
version = "1.0.1"
[dev-dependencies.axum]
features = ["http2"]
version = "0.8.3"
[dev-dependencies.clap]
features = ["derive"]
version = "4.5.35"
[dev-dependencies.ctor]
version = "0.6.1"
[dev-dependencies.rcgen]
features = ["x509-parser", "pem"]
version = "0.14.3"
[dev-dependencies.reqwest]
version = "0.13.1"
[dev-dependencies.rustls-pki-types]
version = "1.12.0"
[dev-dependencies.tracing-subscriber]
features = ["env-filter"]
version = "0.3.18"
[dev-dependencies.winnow]
version = "0.7.4"
[[example]]
name = "dev_proxy"
path = "examples/dev_proxy.rs"
[[example]]
name = "https"
path = "examples/https.rs"
[[example]]
name = "proxy"
path = "examples/proxy.rs"
[[example]]
name = "reqwest_proxy"
path = "examples/reqwest_proxy.rs"
[[example]]
name = "websocket"
path = "examples/websocket.rs"
[features]
default = ["native-tls-client"]
native-tls-client = ["dep:native-tls", "dep:tokio-native-tls"]
rustls-client = ["dep:webpki-roots"]
[lib]
name = "http_mitm_proxy"
path = "src/lib.rs"
[package]
authors = ["hatoo <hato2000@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming", "web-programming::http-server"]
description = "A HTTP proxy server library intended to be a backend of application like Burp proxy."
edition = "2024"
keywords = ["http", "proxy", "http-proxy"]
license = "MIT"
name = "http-mitm-proxy"
readme = "README.md"
repository = "https://github.com/hatoo/http-mitm-proxy"
resolver = "2"
version = "0.17.0"
[[test]]
name = "test"
path = "tests/test.rs"