pub struct LoggingFilter { /* private fields */ }
Expand description
A filter that logs HTTP requests and responses.
Implementations§
Source§impl LoggingFilter
impl LoggingFilter
Sourcepub fn new(config: LoggingFilterConfig) -> Self
pub fn new(config: LoggingFilterConfig) -> Self
Create a new logging filter with the given configuration.
Trait Implementations§
Source§impl Debug for LoggingFilter
impl Debug for LoggingFilter
Source§impl Default for LoggingFilter
impl Default for LoggingFilter
Source§impl Filter for LoggingFilter
impl Filter for LoggingFilter
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,
_req: 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,
_req: 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 LoggingFilter
impl RefUnwindSafe for LoggingFilter
impl Send for LoggingFilter
impl Sync for LoggingFilter
impl Unpin for LoggingFilter
impl UnwindSafe for LoggingFilter
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