Struct iron_csrf::CsrfProtectionMiddleware
[−]
[src]
pub struct CsrfProtectionMiddleware<T: CsrfProtection> { /* fields omitted */ }
Methods
impl<T: CsrfProtection> CsrfProtectionMiddleware<T>
[src]
fn new(protect: T) -> Self
Trait Implementations
impl<T: CsrfProtection + 'static> BeforeMiddleware for CsrfProtectionMiddleware<T>
[src]
fn before(&self, request: &mut Request) -> IronResult<()>
Do whatever work this middleware should do with a Request
object.
fn catch(&self, _: &mut Request, _: IronError) -> IronResult<()>
Respond to an error thrown by a previous BeforeMiddleware
. Read more