Skip to main content

sanitize_hop_by_hop_request_headers

Function sanitize_hop_by_hop_request_headers 

pub fn sanitize_hop_by_hop_request_headers<B>(
    request: &mut Request<B>,
) -> HopByHopHeaderContext
Available on crate features http and std only.
Expand description

Sanitize an outbound request while preserving valid next-hop metadata.

The returned context must be supplied to sanitize_hop_by_hop_response_headers so that an upgrade response is retained only for a matching request.