pub enum HeaderRule {
Set(HeaderName, HeaderValue),
Append(HeaderName, HeaderValue),
Remove(HeaderName),
}Expand description
Rule for modifying headers.
Variants§
Set(HeaderName, HeaderValue)
Set a header, replacing any existing value.
Append(HeaderName, HeaderValue)
Append a header value (allows duplicates).
Remove(HeaderName)
Remove a header.
Trait Implementations§
Source§impl Clone for HeaderRule
impl Clone for HeaderRule
Source§fn clone(&self) -> HeaderRule
fn clone(&self) -> HeaderRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for HeaderRule
impl RefUnwindSafe for HeaderRule
impl Send for HeaderRule
impl Sync for HeaderRule
impl Unpin for HeaderRule
impl UnsafeUnpin for HeaderRule
impl UnwindSafe for HeaderRule
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