pub enum ParserStrictness {
Strict,
Lenient,
}Expand description
Controls how strictly incoming HTTP/1.1 responses are parsed.
Variants§
Strict
Fail closed on ambiguous or unsafe wire framing.
Lenient
Accept a compatibility-oriented subset of non-strict server behavior.
Trait Implementations§
Source§impl Clone for ParserStrictness
impl Clone for ParserStrictness
Source§fn clone(&self) -> ParserStrictness
fn clone(&self) -> ParserStrictness
Returns a duplicate of the value. Read more
1.0.0 · 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 ParserStrictness
impl Debug for ParserStrictness
Source§impl PartialEq for ParserStrictness
impl PartialEq for ParserStrictness
impl Copy for ParserStrictness
impl Eq for ParserStrictness
impl StructuralPartialEq for ParserStrictness
Auto Trait Implementations§
impl Freeze for ParserStrictness
impl RefUnwindSafe for ParserStrictness
impl Send for ParserStrictness
impl Sync for ParserStrictness
impl Unpin for ParserStrictness
impl UnsafeUnpin for ParserStrictness
impl UnwindSafe for ParserStrictness
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