Skip to main content

sanitize_upgrade_forward_headers

Function sanitize_upgrade_forward_headers 

Source
pub fn sanitize_upgrade_forward_headers(
    headers: &[Header],
) -> Result<Vec<Header>, Http1Error>
Expand description

Removes all proxy/internal/framing fields from a WebSocket handshake while preserving end-to-end WebSocket fields and reconstructing the two required hop-by-hop fields canonically.