pub struct HeaderPredicate { /* private fields */ }
Expand description
A predicate that matches on request headers.
Implementations§
Source§impl HeaderPredicate
impl HeaderPredicate
Sourcepub fn new(config: HeaderPredicateConfig) -> Self
pub fn new(config: HeaderPredicateConfig) -> Self
Create a new header predicate with the given configuration.
Trait Implementations§
Source§impl Debug for HeaderPredicate
impl Debug for HeaderPredicate
Source§impl Predicate for HeaderPredicate
impl Predicate for HeaderPredicate
Source§fn matches<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProxyRequest,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn matches<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProxyRequest,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if the request matches this predicate.
Source§fn predicate_type(&self) -> &str
fn predicate_type(&self) -> &str
Get the predicate type.
Auto Trait Implementations§
impl Freeze for HeaderPredicate
impl RefUnwindSafe for HeaderPredicate
impl Send for HeaderPredicate
impl Sync for HeaderPredicate
impl Unpin for HeaderPredicate
impl UnwindSafe for HeaderPredicate
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