Struct third_wheel::MitmProxyBuilder[][src]

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, 
{ /* fields omitted */ }

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]

pub fn build(self) -> MitmProxy<T, U>[src]

pub fn additional_root_certificates(
    self,
    additional_root_certificates: Vec<Certificate>
) -> Self
[src]

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]

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.