pub fn parse_required_header_param<'a, T: Deserialize<'a> + 'a>(
protected: Option<&'a JsonObject>,
unprotected: Option<&'a JsonObject>,
key: &str,
) -> Result<T>Expand description
Get and deserialize a required parameter from either header.
This function delegates to get_required and deserializes the result into the desired type.
Deserialization errors are reported as Error::InvalidHeaderParam.