1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00
examples/http-proxy
Sven-Hendrik Haase fb5779fe8f Always send body whole and don't use transfer encoding
Without doing this, body size would be unknown at the time of sending, causing awc to use transfer encoding which is probably unexpected in most cases.
This change makes behavior more obvious.
2019-10-09 00:56:55 +02:00
..
src Always send body whole and don't use transfer encoding 2019-10-09 00:56:55 +02:00
Cargo.toml Remove old http-proxy, use the full version as the official http-proxy example (closes #164) 2019-08-21 18:07:34 +03:00
README.md Remove old http-proxy, use the full version as the official http-proxy example (closes #164) 2019-08-21 18:07:34 +03:00

HTTP Full 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>