title: how to build REST client in android using HttpUrlConnection
body: <p>I want to build an android app that consumes some REST APIs.</p>
  
  <p>I'm using <code>HttpURLConnection</code> to make a basic authentication and GET/PUT some data, but I feel that I'm doing it the wrong way.
  I have a two classes <code>ConnectionPUT</code> and <code>ConnectionGET</code> that I call for every request, since each HttpURLConnection instance is used to make a single request.</p>
  
  <p>What is the right way to build a REST client with Android using HttpURLConnection?</p>