Enum axum::extract::rejection::TypedHeaderRejectionReason
source · #[non_exhaustive]
pub enum TypedHeaderRejectionReason {
Missing,
Error(Error),
}
Available on crate feature
headers
only.Expand description
Additional information regarding a TypedHeaderRejection
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing
The header was missing from the HTTP request
Error(Error)
An error occured when parsing the header from the HTTP request