pub struct Header<'a> {
pub key: HeaderKey<'a>,
pub value: HeaderValue<'a>,
}
Expand description
A single HTTP-Header Pair(Key-Value)
Fields§
§key: HeaderKey<'a>
The Key part of the Header
value: HeaderValue<'a>
The Value assosicated with the Header
Implementations§
Trait Implementations§
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