title: What is the best practice to handle HTTP request in android
body: <p>I know about basic ways of request handling in android using <code>Async Task</code> or <code>service</code> and using <code>okhttp</code> library. But I am going to work an a complex production quality app, so I would like to know how experienced people handle http requests in android.</p>
  <p>1- Is there any generic way to make http call instead of defining <code>Async Task and all its method</code> for every request?</p>
  <p>2- Is there any simple way to create a single class/function which I can just call and pass url, parameters and gets its response from any activity or at any point in code</p>
  <p>3- I am thinking about using <code>Realm</code> so that I can put request data into database directly and then I can get it in activity by using <code>RealmChangeListener</code>..... is that a better approach?</p>