Crates.io Crates.io

url2

Url2: Ergonomic wrapper around the popular url crate

Example

```rust use url2::prelude::*;

let mut url = Url2::parse("https://example.com/"); url.queryunique() .setpair("hello", "world") .set_pair("foo", "bar");

assert!(url.queryuniquecontainskey("hello")); asserteq!("bar", url.queryuniqueget("foo").unwrap());

url.query_unique().remove("foo");

asserteq!( "https://example.com/?hello=world", url.asstr(), ) ```