Skip to main content

is_valid_url

Function is_valid_url 

Source
pub fn is_valid_url(url: &Url) -> bool
Expand description

Checks if a URL is valid for inclusion in the sitemap.

This function checks if the URL uses either the HTTP or HTTPS scheme.

§Arguments

  • url - The URL to validate

§Returns

true if the URL is valid, false otherwise