r/o

README.md

iron_reverse_proxy crates.io version Build Status

Some simple BeforeMiddleware to make using Iron behind a reverse proxy easier.

Usage:

extern crate iron_reverse_proxy;
use iron::prelude::*;
let mut ch = Chain::new(handler);
ch.link_before(iron_reverse_proxy::ReverseProxyMiddleware);

And youโ€™re done. Works particularly well with routerโ€™s url_for! macro, as it depends on the Request.url property, which this middleware modifies.

License

Licensed under the MIT, see LICENSE.