Struct iron_csrf::CsrfProtectionMiddleware [] [src]

pub struct CsrfProtectionMiddleware<P: CsrfProtection> { /* fields omitted */ }

An implementation of iron::AroundMiddleware that provides transparent wrapping of an application with CSRF protection.

Methods

impl<P: CsrfProtection> CsrfProtectionMiddleware<P>
[src]

Create a new instance of CsrfProtectionMiddleware from a CsrfProtection and CsrfConfig.

Trait Implementations

impl<P: CsrfProtection + 'static> AroundMiddleware for CsrfProtectionMiddleware<P>
[src]

Produce a Handler from this AroundMiddleware given another Handler. Read more