Skip to main content

connect_http

Function connect_http 

Source
pub fn connect_http<S: Read + Write>(
    stream: &mut S,
    host: &str,
    port: u16,
    credentials: Option<HttpCredentials>,
) -> Result<(), ProxyClientError>
Available on crate feature http only.
Expand description

Runs the HTTP CONNECT handshake on stream (already connected to the proxy), tunnelling to host:port and sending Proxy-Authorization: Basic if credentials are provided.