pub struct Header<'a> {
pub name: &'a str,
pub val: &'a [u8],
}Expand description
An HTTP request header field [RFC7230§3.2].
Fields§
§name: &'a strHeader name, with surrounding whitespace trimmed.
This is not guaranteed to be free of internal whitespace or otherwise syntactically correct.
val: &'a [u8]Raw header value.
Trait Implementations§
impl<'a> Copy for Header<'a>
impl<'a> Eq for Header<'a>
impl<'a> StructuralPartialEq for Header<'a>
Auto Trait Implementations§
impl<'a> Freeze for Header<'a>
impl<'a> RefUnwindSafe for Header<'a>
impl<'a> Send for Header<'a>
impl<'a> Sync for Header<'a>
impl<'a> Unpin for Header<'a>
impl<'a> UnwindSafe for Header<'a>
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