Function proxy_request_uri
pub fn proxy_request_uri(
uri: &Uri,
fallback_authority: Option<HostWithOptPort>,
protocol: Protocol,
) -> Result<Uri, Box<dyn Error + Sync + Send>>Available on crate feature
net only.Expand description
Normalize a request target for fixed-proxy selection and PAC evaluation.
The result is absolute, has a root path when no path was supplied, and omits the protocol’s default port. The URI’s own authority wins over the fallback authority supplied by request metadata.