Skip to main content

sends_empty_path

Function sends_empty_path 

pub fn sends_empty_path(uri: &Uri, wire_scheme: &Protocol) -> bool
Available on crate features http and std only.
Expand description

Whether an HTTP/2 or HTTP/3 request for uri sends an empty :path: only a target without path and query whose :scheme on the wire, wire_scheme (after extended_connect_pseudo_scheme), is not http(s), which turn a missing path into / (RFC 9113 §8.3.1, RFC 9114 §4.3.1). A query is always sent, after a /.