2022-02-02 02:02:47 +00:00
|
|
|
## HTTP naïve proxy example
|
2018-05-07 18:55:18 -07:00
|
|
|
|
2022-03-06 00:43:10 +00:00
|
|
|
This is a relatively simple HTTP proxy, forwarding HTTP requests to another HTTP server, including request body, headers, and streaming uploads.
|
2018-05-07 18:55:18 -07:00
|
|
|
|
2019-08-19 21:42:31 +03:00
|
|
|
To start:
|
2018-05-07 18:55:18 -07:00
|
|
|
|
2022-03-06 00:43:10 +00:00
|
|
|
```shell
|
2022-02-02 02:02:47 +00:00
|
|
|
cargo run -- <listen addr> <listen port> <forward addr> <forward port>
|
|
|
|
# example:
|
|
|
|
cargo run -- 127.0.0.1 3333 127.0.0.1 8080
|
2018-05-07 18:55:18 -07:00
|
|
|
```
|