pub fn decode(sec_protocol: &str) -> Result<Value>
Decodes a header value into the JSON it carries, as JSON.parse returns it: decodeSecProtocols does not validate it.
JSON.parse
decodeSecProtocols