pub enum Header<'a> {
ContentType(Cow<'a, str>),
ContentEncoding(Cow<'a, str>),
ContentLanguage(Cow<'a, str>),
ContentLocation(Cow<'a, str>),
UserAgent(Cow<'a, str>),
Accept(Cow<'a, str>),
AcceptLanguage(Cow<'a, str>),
Connection(Cow<'a, str>),
UpgradeInsecureRequests(Cow<'a, str>),
IfModifiedSince(Cow<'a, str>),
IfNoneMatch(Cow<'a, str>),
CacheControl(Cow<'a, str>),
}Expand description
HTTP header
Does not include Forbidden header names.
Variants§
ContentType(Cow<'a, str>)
ContentEncoding(Cow<'a, str>)
ContentLanguage(Cow<'a, str>)
ContentLocation(Cow<'a, str>)
UserAgent(Cow<'a, str>)
User-Agent
Accept(Cow<'a, str>)
Accept
AcceptLanguage(Cow<'a, str>)
Accept-Language
Connection(Cow<'a, str>)
Connection
UpgradeInsecureRequests(Cow<'a, str>)
Upgrade-Insecure-Requests
IfModifiedSince(Cow<'a, str>)
If-Modified-Since
IfNoneMatch(Cow<'a, str>)
If-None-Match
CacheControl(Cow<'a, str>)
Cache-Control
Trait Implementations§
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