Struct third_wheel::MitmProxyBuilder [−][src]
Builder interface for constructing MitmProxy
’s
Implementations
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,
[src]
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>
[src]
pub fn additional_root_certificates(
self,
additional_root_certificates: Vec<Certificate>
) -> Self
[src]
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.
pub fn additional_host_mappings(
self,
additional_host_mappings: HashMap<String, String>
) -> Self
[src]
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> RefUnwindSafe for MitmProxyBuilder<T, U> where
T: RefUnwindSafe,
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,
T: Unpin,
impl<T, U> UnwindSafe for MitmProxyBuilder<T, U> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,