Function connect_udp_request
pub fn connect_udp_request(
proxy: &ProxyAddress,
target: &ConnectUdpTarget,
version: Version,
) -> Result<Request, ConnectUdpRequestError>Available on crate feature
masque only.Expand description
Build the CONNECT-UDP request opening a tunnel to target through proxy.
HTTP/1.1 gets GET with Upgrade: connect-udp, HTTP/2 and HTTP/3 Extended
CONNECT (RFC 9298 §3.2, §3.4); both carry Capsule-Protocol: ?1 and no
content. Proxy credentials become Proxy-Authorization.