Skip to main content

mask_webhook_url

Function mask_webhook_url 

Source
pub fn mask_webhook_url(url: &str) -> Option<String>
Expand description

Mask a webhook URL for display: keep only scheme://host[:port] and append /… so the path/token is never revealed. Returns None for an empty url; a url without a scheme is masked to (it may be a bare token).