Skip to main content

redact_url

Function redact_url 

Source
pub fn redact_url(url: &Url) -> String
Expand description

Return a printable form of url with the query string and fragment stripped. Used by the HTTP send path and error formatter so that values the request put in the query string — SOC signatures (?sig=), Act publisher keys (?recipient=), or an auth token mistakenly passed there — never end up in logs or panics. The path is preserved (path segments are hex / identifier-only and considered public).