1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/http-proxy
2022-12-11 15:25:57 +00:00
..
src update deps 2022-10-26 16:51:27 +01:00
Cargo.toml update env_logger to 0.10 2022-12-11 15:25:57 +00:00
README.md format markdown 2022-03-06 00:43:10 +00:00

HTTP naïve proxy example

This is a relatively simple HTTP proxy, forwarding HTTP requests to another HTTP server, including request body, headers, and streaming uploads.

To start:

cargo run -- <listen addr> <listen port> <forward addr> <forward port>
# example:
cargo run -- 127.0.0.1 3333 127.0.0.1 8080