android - What are the pros and cons of using HttpUriRequest vs. HttpURLConnection? -


i have made several apps , libraries android use httpurirequest create network requests (for example, droidquery library), have been seeing new libraries emerging (such okhttp, meant extraordinarily fast) use httpurlconnection instead.

does httpurlconnection provide faster connection httpurirequest, or these 2 classes equivalent? pros , cons using 1 on other?

this answered on android dev blog:

which client best?

apache http client has fewer bugs on eclair , froyo. best choice these releases.

for gingerbread , better, httpurlconnection best choice. simple api , small size makes great fit android. transparent compression , response caching reduce network use, improve speed , save battery. new applications should use httpurlconnection; spending our energy going forward.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -