Skip to main content

validate_https_url

Function validate_https_url 

Source
pub fn validate_https_url(url: &str) -> Result<()>
Expand description

Validate that a URL uses the HTTPS scheme.

Returns Ok(()) if the URL starts with https://, or an error describing why it was rejected. This check happens before any network access.