pub struct MitmProxy { /* private fields */ }Expand description
MITM Proxy main struct
Implementations§
Source§impl MitmProxy
impl MitmProxy
Sourcepub async fn new(config: MitmConfig) -> Result<Self>
pub async fn new(config: MitmConfig) -> Result<Self>
Create a new MITM proxy with the given configuration
Sourcepub async fn ca_cert_pem(&self) -> Result<String>
pub async fn ca_cert_pem(&self) -> Result<String>
Get the CA certificate in PEM format (async). This crate no longer exposes a synchronous API for reading the CA PEM.
Sourcepub fn ca_cert_path(&self) -> PathBuf
pub fn ca_cert_path(&self) -> PathBuf
Get the CA certificate path
Sourcepub fn interceptor_handler(&self) -> Arc<RwLock<InterceptorHandler>>
pub fn interceptor_handler(&self) -> Arc<RwLock<InterceptorHandler>>
Get a reference to the interceptor handler
Auto Trait Implementations§
impl !Freeze for MitmProxy
impl !RefUnwindSafe for MitmProxy
impl Send for MitmProxy
impl Sync for MitmProxy
impl Unpin for MitmProxy
impl UnsafeUnpin for MitmProxy
impl !UnwindSafe for MitmProxy
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