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]
fn before(&self, req: &mut Request) -> IronResult<()>
[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.
fn catch(&self, &mut Request, err: IronError) -> Result<(), IronError>
[src]
Respond to an error thrown by a previous BeforeMiddleware
. Read more