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]
fn new(protect: P, config: CsrfConfig) -> Self
Create a new instance of CsrfProtectionMiddleware
from a CsrfProtection
and
CsrfConfig
.