Function encode_request_target
pub fn encode_request_target(
method: &Method,
uri: &Uri,
extensions: &Extensions,
output: &mut BytesMut,
) -> Result<(), HeadError>Available on crate features
http and std only.Expand description
Encode the HTTP/1 request-target selected by Rama connection metadata.
Direct requests use origin-form, CONNECT uses authority-form, OPTIONS * uses asterisk-form, and insecure requests routed through an HTTP proxy
use absolute-form. Userinfo and fragments are never emitted.