Skip to main content

is_req_http_proxy_connect

Function is_req_http_proxy_connect 

pub fn is_req_http_proxy_connect<Body>(req: &Request<Body>) -> bool
Available on crate features http and std only.
Expand description

Returns true if the provided request is an ordinary (proxy) CONNECT request.

On HTTP/2 and HTTP/3 a CONNECT carrying a Protocol is Extended CONNECT (RFC 8441, RFC 9220), which targets an origin resource rather than a tunnel.