title: Difference between okhttp and httpurlconnection?
body: <p>What are the differences between these 2 libraries?</p>
  
  <p>How I understood there is a difference between these 2 lib also because Volley uses httpurlconnection and Retrofit the okhttp....</p>
  
  <p>But I don't understand the difference between them and pros and cons of both solutions. When is okhttp better and when httpurlconnection?</p>
  
  <p>I would like to know so I know when should I use them.</p>
  
  <p>EDIT:</p>
  
  <p>Why does android use okhttp for the httpurlconnection? before httpurlconnection was not using okhttp if I am not wrong</p>