Skip to main content

redact_query_params

Function redact_query_params 

Source
fn redact_query_params(line: &str) -> String
Expand description

?api_key=abc&x=1 -> ?api_key=[REDACTED]&x=1

The value ends at the first character that cannot be part of one: & separates parameters, and whitespace/quotes mean the URL itself ended.