pub struct MitmConfig {
pub ca_storage_path: PathBuf,
pub max_connections: usize,
pub connection_timeout: u64,
pub interceptor_timeout_secs: u64,
pub upstream_proxy: Option<Proxy>,
}Expand description
Configuration for MITM proxy
Fields§
§ca_storage_path: PathBufPath to store CA certificates
max_connections: usizeMaximum concurrent connections
connection_timeout: u64Connection timeout in seconds
interceptor_timeout_secs: u64Interceptor timeout in seconds. Each interceptor is given this duration to process a request/response; if it exceeds the timeout it will be skipped to avoid blocking the proxy.
upstream_proxy: Option<Proxy>Optional upstream proxy (supports HTTP, HTTPS, SOCKS5, SOCKS5h) Example: “socks5h://127.0.0.1:1080” or “http://proxy.example.com:8080”
Trait Implementations§
Source§impl Clone for MitmConfig
impl Clone for MitmConfig
Source§fn clone(&self) -> MitmConfig
fn clone(&self) -> MitmConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for MitmConfig
impl RefUnwindSafe for MitmConfig
impl Send for MitmConfig
impl Sync for MitmConfig
impl Unpin for MitmConfig
impl UnsafeUnpin for MitmConfig
impl UnwindSafe for MitmConfig
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