pub fn encode_upgrade_response_head(
status: u16,
reason: &str,
headers: &[(String, String)],
) -> Result<EncodedResponseHead, ResponseError>Expand description
Validates and reconstructs a WebSocket Upgrade response. Origin-controlled framing, proxy, internal, and connection-nominated fields are never copied; the two mandatory hop-by-hop fields are emitted canonically by the proxy.