Skip to main content

validate_url

Function validate_url 

Source
pub fn validate_url(url_str: &str) -> Result<Url, SecurityError>
Expand description

Validate a URL: must be http/https, must not resolve to private/localhost IPs.

Returns the parsed Url on success.