Struct poem::web::CsrfVerifier [−][src]
pub struct CsrfVerifier { /* fields omitted */ }
This is supported on crate feature
csrf
only.Expand description
A verifier for CSRF Token.
See also Csrf
Implementations
Trait Implementations
fn from_request<'life0, 'async_trait>(
req: &'a Request,
_body: &'life0 mut RequestBody
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn from_request<'life0, 'async_trait>(
req: &'a Request,
_body: &'life0 mut RequestBody
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Extract from request head and body.
Auto Trait Implementations
impl RefUnwindSafe for CsrfVerifier
impl Send for CsrfVerifier
impl Sync for CsrfVerifier
impl Unpin for CsrfVerifier
impl UnwindSafe for CsrfVerifier
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more