pub fn host_from_url(url: &str) -> Result<String, String>
Extract hostname from an http:// or https:// URL.
http://
https://