pub struct Header<'a> {
pub name: &'a [u8],
pub value: &'a [u8],
}Expand description
HTTP request header.
Both name and value must be null-terminated byte strings
(e.g. b"Authorization\0", b"Bearer token\0").
Fields§
§name: &'a [u8]§value: &'a [u8]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