Struct iron_dsc_csrf::Csrf
[−]
[src]
pub struct Csrf { /* fields omitted */ }
An iron::AroundMiddleware
that provides CSRF protection.
Methods
impl Csrf
[src]
fn new<K: Fn(&Request) -> Option<String> + Sync + Send + 'static>(
extract_token: K
) -> Self
[src]
extract_token: K
) -> Self
Create a new instance of Csrf
given a function to extract the CSRF
token from a request.