Revision control
Copy as Markdown
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
use url::Url;
use url_macro::url;
fn main() {
assert_eq!(prod.scheme(), "https");
assert_eq!(prod.host_str(), Some("ads.mozilla.org"));
assert_eq!(prod.path(), "/v1/");
assert_eq!(staging.scheme(), "https");
assert_eq!(staging.host_str(), Some("ads.allizom.org"));
assert_eq!(with_query.query(), Some("key=value"));
assert_eq!(with_query.fragment(), Some("frag"));
}