Skip to main content

redact_server_url

Function redact_server_url 

Source
pub fn redact_server_url(url: &str) -> String
Expand description

Reduce a server URL to scheme and host.

The host is diagnostic (is it https? a LAN address? a reverse proxy?); the path and any query on it are not, and a configured URL has been seen to carry a token.