Module extractor

Source
Expand description

Contains various extractors related to CSRF tokens.

Structs§

Csrf
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.
CsrfCookie
Extractor to get the CSRF cookie from the request.
CsrfCookieConfig
Configuration struct for CsrfCookie.
CsrfExtractorFuture
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.
CsrfHeader
Extractor to get the CSRF header from the request.
CsrfHeaderConfig
Configuration struct for CsrfHeader.
CsrfToken
Extractor to get the CSRF token that will be set as a cookie.

Enums§

CsrfExtractorError
Represents an error that occurs when polling CsrfExtractorFuture.

Traits§

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