pub struct Header {
pub name_start: usize,
pub name_end: usize,
pub value_start: usize,
pub value_end: usize,
}Expand description
Represents a parsed header.
Fields§
§name_start: usizeThe name portion of a header.
A header name must be valid ASCII-US, so it’s safe to store as a &str.
name_end: usize§value_start: usizeThe value portion of a header.
While headers should be ASCII-US, the specification allows for values that may not be, and so the value is stored as bytes.
value_end: usizeTrait Implementations§
impl Copy for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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