Skip to main content

validate_http_url

Function validate_http_url 

Source
pub fn validate_http_url(raw: &str) -> Result<Url, String>
Expand description

Validate that a URL string uses an HTTP or HTTPS scheme.

Returns the parsed, normalised URL on success, or a human-readable error string suitable for display in the settings UI.