iron_reverse_proxy

Crates.ioiron_reverse_proxy
lib.rsiron_reverse_proxy
version0.1.1
sourcesrc
created_at2018-01-13 03:56:44.599441
updated_at2018-01-13 04:05:29.126683
descriptionBeforeMiddleware to handle being behind a reverse proxy in Iron. Supports X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Proto.
homepage
repository
max_upload_size
id46604
size7,263
Asherah Connor (kivikakk)

documentation

README

iron_reverse_proxy 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();
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.

Commit count: 0

cargo fmt