Expand description

Contains various extractors related to CSRF tokens.

Structs

This extractor wraps another extractor that returns some inner type that holds a CSRF token, and performs validation on the token. If the token is missing or invalid, then the extractor will return an error.

Extractor to get the CSRF cookie from the request.

Configuration struct for CsrfCookie.

Polls the underlying future, returning the underlying result if and only if the CSRF token is valid. This is an implementation detail of Csrf, and cannot be constructed normally.

Extractor to get the CSRF header from the request.

Configuration struct for CsrfHeader.

Extractor to get the CSRF token that will be set as a cookie.

Enums

Represents an error that occurs when polling CsrfExtractorFuture.

Traits

This trait represents types who have a field that represents a CSRF token.