pub fn validate_url(url: &str) -> Result<String, String>
Validate + canonicalize a server URL: trim, strip trailing slash, auto-prefix https:// on bare domains, enforce http(s) + non-empty host.
https://