Skip to main content

start_proxy

Function start_proxy 

Source
pub async fn start_proxy<S>(
    source: S,
    on_flow: Sender<FlowUpdate>,
    interceptor: Arc<dyn Interceptor>,
    ca: Arc<CertificateAuthority>,
    policy: Receiver<ProxyPolicy>,
    client: Option<Arc<HttpsClient>>,
    shutdown_rx: Option<Receiver<()>>,
) -> Result<()>
where S: CaptureSource + Send + 'static, S::IO: AsyncRead + AsyncWrite + Unpin + Send + 'static,
Expand description

Start the HTTP Proxy Server