#[non_exhaustive]pub enum HeaderTechnique {
CaseMixing,
TabSeparator,
WhitespacePadding,
LineFolding,
LfOnlyLineFolding,
DuplicateHeader,
UnderscoreSubstitution,
NullByteInjection,
TrailingSpace,
MultiLineFolding,
LfOnlyMultiLineFolding,
CommaJoin,
}Expand description
A header transformation technique.
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.
CaseMixing
Random case mixing of header name.
TabSeparator
Tab character instead of space after colon.
WhitespacePadding
Extra whitespace around header value.
LineFolding
Obsolete header folding with continuation line (CRLF + whitespace).
LfOnlyLineFolding
LF-only continuation line.
DuplicateHeader
Duplicate header with benign value first.
UnderscoreSubstitution
Underscore instead of hyphen in header name.
NullByteInjection
Null byte injected into header name.
TrailingSpace
Trailing space before colon in header name.
MultiLineFolding
Header value wrapped across multiple continuation lines.
LfOnlyMultiLineFolding
LF-only multi-line folding.
CommaJoin
Multiple values comma-joined in a single header.
Trait Implementations§
Source§impl Clone for HeaderTechnique
impl Clone for HeaderTechnique
Source§fn clone(&self) -> HeaderTechnique
fn clone(&self) -> HeaderTechnique
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderTechnique
impl Debug for HeaderTechnique
Source§impl<'de> Deserialize<'de> for HeaderTechnique
impl<'de> Deserialize<'de> for HeaderTechnique
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HeaderTechnique
impl Display for HeaderTechnique
Source§impl Hash for HeaderTechnique
impl Hash for HeaderTechnique
Source§impl PartialEq for HeaderTechnique
impl PartialEq for HeaderTechnique
Source§fn eq(&self, other: &HeaderTechnique) -> bool
fn eq(&self, other: &HeaderTechnique) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HeaderTechnique
impl Serialize for HeaderTechnique
impl Copy for HeaderTechnique
impl Eq for HeaderTechnique
impl StructuralPartialEq for HeaderTechnique
Auto Trait Implementations§
impl Freeze for HeaderTechnique
impl RefUnwindSafe for HeaderTechnique
impl Send for HeaderTechnique
impl Sync for HeaderTechnique
impl Unpin for HeaderTechnique
impl UnsafeUnpin for HeaderTechnique
impl UnwindSafe for HeaderTechnique
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.