Skip to main content

redact_map

Function redact_map 

Source
fn redact_map(
    src: &HashMap<String, Vec<String>>,
    is_secret: impl Fn(&str) -> bool,
) -> BTreeMap<String, Vec<String>>
Expand description

Redacts a header/query map into a deterministic BTreeMap, preserving the arity of multi-valued entries so the shape of the request is still visible.