pub struct HeaderFilter { /* private fields */ }
Expand description
A filter that modifies HTTP headers.
Implementations§
Source§impl HeaderFilter
impl HeaderFilter
Sourcepub fn new(config: HeaderFilterConfig) -> Self
pub fn new(config: HeaderFilterConfig) -> Self
Create a new header filter with the given configuration.
Trait Implementations§
Source§impl Debug for HeaderFilter
impl Debug for HeaderFilter
Source§impl Default for HeaderFilter
impl Default for HeaderFilter
Source§impl Filter for HeaderFilter
impl Filter for HeaderFilter
Source§fn filter_type(&self) -> FilterType
fn filter_type(&self) -> FilterType
Get the filter type.
Source§fn pre_filter<'life0, 'async_trait>(
&'life0 self,
request: ProxyRequest,
) -> Pin<Box<dyn Future<Output = Result<ProxyRequest, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pre_filter<'life0, 'async_trait>(
&'life0 self,
request: ProxyRequest,
) -> Pin<Box<dyn Future<Output = Result<ProxyRequest, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a request before it is sent to the target.
Source§fn post_filter<'life0, 'async_trait>(
&'life0 self,
_request: ProxyRequest,
response: ProxyResponse,
) -> Pin<Box<dyn Future<Output = Result<ProxyResponse, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn post_filter<'life0, 'async_trait>(
&'life0 self,
_request: ProxyRequest,
response: ProxyResponse,
) -> Pin<Box<dyn Future<Output = Result<ProxyResponse, ProxyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a response after it is received from the target.
Auto Trait Implementations§
impl Freeze for HeaderFilter
impl RefUnwindSafe for HeaderFilter
impl Send for HeaderFilter
impl Sync for HeaderFilter
impl Unpin for HeaderFilter
impl UnwindSafe for HeaderFilter
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