title: How do you make a GET request in Rust?
body: <p>I noticed that Rust doesn't have a builtin library to deal with HTTP, it only has a <code>net</code> module that deals with raw IP and TCP protocols.</p>
  
  <p>I need to take a <code>&amp;str</code> of the URL, make a HTTP GET request, and if successful return either a <code>String</code> or <code>&amp;str</code> that corresponds to the HTML or JSON or other response in string form.</p>
  
  <p>It would look something like:</p>
  
  <pre><code>use somelib::http;
  
  let response = http::get(&amp;"http://stackoverflow.com");
  match response {
      Some(suc) =&gt; suc,
      None =&gt; panic!
  }
  </code></pre>