iron_reverse_proxy 0.1.1

BeforeMiddleware to handle being behind a reverse proxy in Iron. Supports X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Proto.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 7.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 366.26 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 20s Average build duration of successful builds.
  • all releases: 20s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kivikakk

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.