A simple asynchronous HTTP proxy written in Rust.
- Custom port selection
- Optional basic authentication (username/password)
- Supports
CONNECTfor HTTPS traffic - Forwards standard HTTP traffic
To build the proxy, run the following command:
cargo build --releaseThe executable will be located at target/release/mypproxy.
./target/release/mypproxy --port 8080./target/release/mypproxy --port 8080 --username myuser --password mypass# Without authentication
curl -x http://127.0.0.1:8080 https://www.rust-lang.org/
# With authentication
curl -x http://127.0.0.1:8080 -U myuser:mypass https://www.rust-lang.org/# Without authentication
curl -x http://127.0.0.1:8080 http://httpbin.org/get
# With authentication
curl -x http://127.0.0.1:8080 -U myuser:mypass http://httpbin.org/get