Skip to main content

parse_headers

Function parse_headers 

Source
pub fn parse_headers(value: &Value) -> Result<Vec<(String, String)>, String>
Expand description

Parse an activateSecurity (or rotation) headers param: an object of string values, replacing the transport’s FULL header set (RFC 0002 §2.3). The router validates the shape at the shared chokepoint; each host applies the parsed set to its own transport (the router stays transport-agnostic).