1
0
mirror of https://github.com/actix/examples synced 2025-02-02 09:39:03 +01:00
examples/http-full-proxy
Julian Tescher 58675a683b Do not decompress proxied responses (#151)
If you decompress a proxied response that was encoded, the `content-encoding` header will be passed through but a plaintext body will be returned.
2019-06-28 14:52:12 +06:00
..
2019-06-06 16:47:40 +06:00

HTTP Full proxy example

This proxy forwards all types of requests, including ones with body, to another HTTP server, returning the response to the client.

To start:

cargo run <listen addr> <listen port> <forward addr> <forward port>