pub enum SgHttpHeaderMatchRewritePolicy {
Exact(HeaderValue, Option<HeaderValue>),
Regular(Regex, Option<String>),
}Variants§
Exact(HeaderValue, Option<HeaderValue>)
Matches the HTTP header exactly and with case sensitivity.
Regular(Regex, Option<String>)
Matches if the Http header matches the given regular expression with case sensitivity.
Trait Implementations§
Source§impl Clone for SgHttpHeaderMatchRewritePolicy
impl Clone for SgHttpHeaderMatchRewritePolicy
Source§fn clone(&self) -> SgHttpHeaderMatchRewritePolicy
fn clone(&self) -> SgHttpHeaderMatchRewritePolicy
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 SgHttpHeaderMatchRewritePolicy
impl RefUnwindSafe for SgHttpHeaderMatchRewritePolicy
impl Send for SgHttpHeaderMatchRewritePolicy
impl Sync for SgHttpHeaderMatchRewritePolicy
impl Unpin for SgHttpHeaderMatchRewritePolicy
impl UnwindSafe for SgHttpHeaderMatchRewritePolicy
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