An async HTTP/HTTPS proxy in Rust
Arguments:
#[arg(long, default_value = "127.0.0.1", help = "Host to listen on")]
host: String,
#[arg(short, long, default_value = "8080", help = "Port to listen on")]
port: u16, // allows values 0...65535
#[arg(long, help = "Enable debug logging")]
verbose: bool,
Once installed and built, run rhoxy --port 8081 to run the HTTP/HTTPS proxy locally on port 8081.
If you were using mac, you would enable system usage in the wifi settings with localhost or 127.0.0.1 and port 8081 to serve traffic through this proxy.
cargo install rhoxyRunning the above command will globally install the rhoxy binary.
Run the following Cargo command in your project directory:
cargo add rhoxyOr add the following line to your Cargo.toml:
rhoxy = "0.2.6"
# listen on port 8081 on host 127.0.0.1 with debug logging
cargo run -- --port 8081 --verbosecargo build --release
cargo install --path .
rhoxy --port 8080- Authentication
- Access logging
- Rate limiting