pub fn verify_domains_match(a: &Url, b: &Url) -> Result<(), Error>
Expand description

Check that both urls have the same domain. If not, return UrlVerificationError.

let a = Url::parse("https://example.com/abc")?;
let b = Url::parse("https://sample.net/abc")?;
assert!(verify_domains_match(&a, &b).is_err());