Struct http_mitm_proxy::MitmProxy
source · pub struct MitmProxy<C> {
pub root_cert: Option<C>,
}Expand description
The main struct to run proxy server
Fields§
§root_cert: Option<C>Root certificate to sign fake certificates. You may need to trust this certificate on client application to use HTTPS.
If None, proxy will just tunnel HTTPS traffic and will not observe HTTPS traffic.
Implementations§
source§impl<C: Borrow<CertifiedKey> + Send + Sync + 'static> MitmProxy<C>
impl<C: Borrow<CertifiedKey> + Send + Sync + 'static> MitmProxy<C>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for MitmProxy<C>where
C: Freeze,
impl<C> RefUnwindSafe for MitmProxy<C>where
C: RefUnwindSafe,
impl<C> Send for MitmProxy<C>where
C: Send,
impl<C> Sync for MitmProxy<C>where
C: Sync,
impl<C> Unpin for MitmProxy<C>where
C: Unpin,
impl<C> UnwindSafe for MitmProxy<C>where
C: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)