A simple reverse proxy for use with Hyper and Tokio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brian Picciano d5a6f79918 Merge remote-tracking branch 'stefansundin/allow-debug-clone' 4 weeks ago
.github/workflows chore: update benches 2 years ago
benches Replace `lazy_static` with `OnceLock`. 4 weeks ago
examples Replace `lazy_static` with `OnceLock`. 4 weeks ago
src Merge remote-tracking branch 'stefansundin/allow-debug-clone' 4 weeks ago
tests Replace `lazy_static` with `OnceLock`. 4 weeks ago
.gitignore port lib to hyper 0.13 and future 0.3 4 years ago
.travis.yml Initial commit 7 years ago
Cargo.toml Replace `lazy_static` with `OnceLock`. 4 weeks ago
LICENSE Initial commit 7 years ago
README.md Remove outdated information since hyper-trust-dns is no longer used in the example. 1 month ago


This is a fork

This repo contains a fork of the original hyper-reverse-proxy codebase, adding to it a few improvements:

  • Fix to a bug where the Host header was getting overwritten on the upstream HTTP request.

  • Upgraded hyper version to 1.x (and fixes related to that upgrade)

  • Logging cleanup

Plus more as time goes on.


License docs version

A simple reverse proxy, to be used with Hyper.

The implementation ensures that Hop-by-hop headers are stripped correctly in both directions, and adds the client's IP address to a comma-space-separated list of forwarding addresses in the X-Forwarded-For header.

The implementation is based on Go's httputil.ReverseProxy.


Run the example by cloning this repository and running:

cargo run --example simple

The example will set up a reverse proxy listening on, and will proxy these calls:

  • http://service1.localhost:8000 will be proxied to

  • http://service2.localhost:8000 will be proxied to

  • All other URLs will display request information.