pub struct MitmProxyBuilder<T, U>where
T: Layer<ThirdWheel, Service = U> + Sync + Send + 'static + Clone,
U: Service<Request<Body>, Response = <ThirdWheel as Service<Request<Body>>>::Response> + Sync + Send + Clone + 'static,
<U as Service<Request<Body>>>::Future: Send,
<U as Service<Request<Body>>>::Error: Error + Send + Sync + 'static,{ /* private fields */ }
Expand description
Builder interface for constructing MitmProxy
’s
Implementations§
Source§impl<T, U> MitmProxyBuilder<T, U>where
T: Layer<ThirdWheel, Service = U> + Sync + Send + 'static + Clone,
U: Service<Request<Body>, Response = <ThirdWheel as Service<Request<Body>>>::Response> + Sync + Send + Clone + 'static,
<U as Service<Request<Body>>>::Future: Send,
<U as Service<Request<Body>>>::Error: Error + Send + Sync + 'static,
impl<T, U> MitmProxyBuilder<T, U>where
T: Layer<ThirdWheel, Service = U> + Sync + Send + 'static + Clone,
U: Service<Request<Body>, Response = <ThirdWheel as Service<Request<Body>>>::Response> + Sync + Send + Clone + 'static,
<U as Service<Request<Body>>>::Future: Send,
<U as Service<Request<Body>>>::Error: Error + Send + Sync + 'static,
pub fn build(self) -> MitmProxy<T, U>
Sourcepub fn additional_root_certificates(
self,
additional_root_certificates: Vec<Certificate>,
) -> Self
pub fn additional_root_certificates( self, additional_root_certificates: Vec<Certificate>, ) -> Self
Add root certificates that the proxy should trust when making outgoing connections. This is in addition to the system certificates that are already trusted.
Sourcepub fn additional_host_mappings(
self,
additional_host_mappings: HashMap<String, String>,
) -> Self
pub fn additional_host_mappings( self, additional_host_mappings: HashMap<String, String>, ) -> Self
Add mappings for particular hosts to IP addresses. Useful for testing against local TLS servers.
Auto Trait Implementations§
impl<T, U> Freeze for MitmProxyBuilder<T, U>where
T: Freeze,
impl<T, U> RefUnwindSafe for MitmProxyBuilder<T, U>where
T: RefUnwindSafe,
impl<T, U> Send for MitmProxyBuilder<T, U>
impl<T, U> Sync for MitmProxyBuilder<T, U>
impl<T, U> Unpin for MitmProxyBuilder<T, U>where
T: Unpin,
impl<T, U> UnwindSafe for MitmProxyBuilder<T, U>where
T: 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