1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

Remove old http-proxy, use the full version as the official http-proxy example (closes #164)

This commit is contained in:
Rotem Yaari
2019-08-19 21:42:31 +03:00
parent 7abc37139c
commit bc7e9f5e6b
8 changed files with 100 additions and 208 deletions

View File

@ -1,13 +1,10 @@
## Http proxy example
## HTTP Full proxy example
To start proxy server:
This is a relatively simple HTTP proxy, forwarding HTTP requests to another HTTP server, including
request body, headers, and streaming uploads.
```sh
cargo run --bin proxy
```
To start local backend server:
```sh
cargo run --bin proxy-example-server
To start:
``` shell
cargo run <listen addr> <listen port> <forward addr> <forward port>
```