pub struct LoggingInterceptor;Expand description
Logging interceptor implementation that handles both HTTP and TCP traffic
Trait Implementations§
Source§impl Interceptor for LoggingInterceptor
impl Interceptor for LoggingInterceptor
Source§fn intercept_request<'life0, 'async_trait>(
&'life0 self,
request: MitmRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<MitmRequest>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn intercept_request<'life0, 'async_trait>(
&'life0 self,
request: MitmRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<MitmRequest>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Intercept and optionally modify a request Read more
Source§fn intercept_response<'life0, 'async_trait>(
&'life0 self,
response: MitmResponse,
) -> Pin<Box<dyn Future<Output = Result<Option<MitmResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn intercept_response<'life0, 'async_trait>(
&'life0 self,
response: MitmResponse,
) -> Pin<Box<dyn Future<Output = Result<Option<MitmResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Intercept and optionally modify a response
The response is automatically correlated with its request via session_id Read more
Auto Trait Implementations§
impl Freeze for LoggingInterceptor
impl RefUnwindSafe for LoggingInterceptor
impl Send for LoggingInterceptor
impl Sync for LoggingInterceptor
impl Unpin for LoggingInterceptor
impl UnsafeUnpin for LoggingInterceptor
impl UnwindSafe for LoggingInterceptor
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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