I have a URL like this:
http%3A%2F%2Fexample.com%3Fa%3D1%26b%3D2%26c%3D3
I parsed it with hyper::Url::parse
and fetch the query string:
let parsed_url = hyper::Url::parse(&u).unwrap();
let query_string = parsed_url.query();
But it gives me the query as a string. I want to get the query string as HashMap
. something like this:
// some code to convert query string to HashMap
hash_query.get(&"a"); // eq to 1
hash_query.get(&"b"); // eq to 2