Struct iron_dsc_csrf::Csrf [] [src]

pub struct Csrf { /* fields omitted */ }

An iron::AroundMiddleware that provides CSRF protection.

Methods

impl Csrf
[src]

[src]

Create a new instance of Csrf given a function to extract the CSRF token from a request.

Trait Implementations

impl Key for Csrf
[src]

The value type associated with this key type.

impl AroundMiddleware for Csrf
[src]

[src]

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