Skip to main content

proxy_connection_reuse

Function proxy_connection_reuse 

pub fn proxy_connection_reuse(
    connection: &Extensions,
) -> Option<ConnectionReuse>
Available on crate feature net only.
Expand description

The reuse rules of a connection to a proxy, for the connection that carries origin requests over it: a tunnel through it, or that connection itself for a forwarding proxy. None if connection is not a connection to a proxy.

Its rules describe that connection, so a pool checks them against each origin request as proxy_request turns it into a request to the proxy. The pool partition of the connection to the proxy is one of them.