Function extract_header

Source
pub fn extract_header<'a>(
    headers: &'a MetadataMap,
    keys: &[&str],
) -> Result<Option<&'a str>, Status>
Expand description

Helper function to extract a header from the metadata map. Can be multiple keys, and the first one found will be returned.