1
0
mirror of https://github.com/actix/examples synced 2024-12-12 14:13:11 +01:00
examples/other/http-proxy
2022-02-06 08:19:35 +00:00
..
src fix db/basic 2022-02-06 08:19:35 +00:00
Cargo.toml move http-proxy to other 2022-02-02 02:03:54 +00:00
README.md move http-proxy to other 2022-02-02 02:03:54 +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