Skip to main content

is_http1_connect_target

Function is_http1_connect_target 

pub fn is_http1_connect_target(uri: &Uri, extensions: &Extensions) -> bool
Available on crate features http and std only.
Expand description

Whether an HTTP/1 CONNECT can name uri: as host:port (RFC 9112 §3.2.3), and never as an Extended CONNECT, whose HTTP/1.1 form is an Upgrade request instead (RFC 8441 §5).