title: How do I decode a URL and get the query string as a HashMap?
body: <p>I have a URL like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>http%3A%2F%2Fexample.com%3Fa%3D1%26b%3D2%26c%3D3
  </code></pre>
  
  <p>I parsed it with <code>hyper::Url::parse</code> and fetch the query string:</p>
  
  <pre><code>let parsed_url = hyper::Url::parse(&amp;u).unwrap();
  let query_string = parsed_url.query();
  </code></pre>
  
  <p>But it gives me the query as a string. I want to get the query string as <code>HashMap</code>. something like this:</p>
  
  <pre><code>// some code to convert query string to HashMap
  hash_query.get(&amp;"a"); // eq to 1
  hash_query.get(&amp;"b"); // eq to 2
  </code></pre>