Struct iron_csrf::CsrfConfigBuilder [] [src]

pub struct CsrfConfigBuilder { /* fields omitted */ }

A utility to help build a CsrfConfig in an API backwards compatible way.

Methods

impl CsrfConfigBuilder
[src]

Set the TTL in seconds for CSRF cookies and tokens.

Set the HTTP methods that are require CSRF protection.

Validate and build the CsrfConfig.