Function ensure_valid_h2_or_h3_request
pub fn ensure_valid_h2_or_h3_request<Body>(
request: &mut Request<Body>,
) -> Result<(), Box<dyn Error + Sync + Send>>Available on crate features
http and std only.Expand description
Normalize a request so it is a valid HTTP/2 or HTTP/3 request: ensure the
authority/scheme live in the URI (for the :authority/:scheme pseudo-headers) and
strip the connection-specific headers those versions forbid (RFC 9113 §8.2.2).