Struct iron_reverse_proxy::ReverseProxyMiddleware [] [src]

pub struct ReverseProxyMiddleware;

A BeforeMiddleware which checks common X-Forwarded-* headers and applies them to the request URL.

Trait Implementations

impl BeforeMiddleware for ReverseProxyMiddleware
[src]

[src]

Check the request for the following request headers:

  • X-Forwarded-Host
  • X-Forwarded-Proto
  • X-Forwarded-Port

If (and only if) X-Forwarded-Host is present, all present headers will be applied to the request URL.

[src]

Respond to an error thrown by a previous BeforeMiddleware. Read more