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.
- Csrf
Cookie - Extractor to get the CSRF cookie from the request.
- Csrf
Cookie Config - Configuration struct for
CsrfCookie
. - Csrf
Extractor Future - 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. - Csrf
Header - Extractor to get the CSRF header from the request.
- Csrf
Header Config - Configuration struct for
CsrfHeader
. - Csrf
Token - Extractor to get the CSRF token that will be set as a cookie.
Enums§
- Csrf
Extractor Error - Represents an error that occurs when polling
CsrfExtractorFuture
.
Traits§
- Csrf
Guarded - This trait represents types who have a field that represents a CSRF token.