<span id="Label3"></p><strong><strong> <span data-wiz-span="data-wiz-span">Source Please poke<br></span></strong></strong><strong><strong><span data-wiz-span="data-wiz-span">one,<span class="Apple-tab-span"><span data-wiz-span="data-wiz-span"> <span data-wiz-span="data-wiz-span">the existing library and the selected library</span> </span></span> </span></strong></strong><span class="Apple-tab-span"><span class="Apple-tab-span">Httpurlconnection: is the standard class in java, which is the encapsulation of sockets in Java. </span></span><span class="Apple-tab-span"><span class="Apple-tab-span">Httpclient: is Apache's open source framework, which is the encapsulation of Httpurlconnection. </span></span><span class="Apple-tab-span"><span class="Apple-tab-span">Okhttp: is the Open Source Network access framework developed by square, which is the encapsulation of Sockets. </span></span>In summary, Okhttp is the most suitable network framework, according to the business needs of the appropriate encapsulation can be well suited to our NEEDS. In addition, the framework is now widely used, such as the famous corporate facebook, which is the okhttp for network access in its own Android Client.<strong><strong>using <span style="color: #24890d; font-size: medium;">OkHttp</span> </strong></strong><strong><strong>. </strong></strong>Facebook has long started using Square's OkHttp, an open-source network protocol stack, and now Google has<span style="color: #24890d; font-family: ‘Microsoft YaHei‘, 微软雅黑, ‘Hiragino Sans GB‘, STHeiti, ‘WenQuanYi Micro Hei‘, SimSun, sans-serif, Lucida, Verdana, serif; font-size: medium;"><span style="color: #24890d; font-family: ‘Microsoft YaHei‘, 微软雅黑, ‘Hiragino Sans GB‘, STHeiti, ‘WenQuanYi Micro Hei‘, SimSun, sans-serif, Lucida, Verdana, serif; font-size: medium;">Android 4.4 starts using okhttp as</span></span>The default implementation of the Httpurlconnection. OkHttp supports faster retries under a bad network environment and can also use the SPDY protocol for Fast Concurrent network Requests. View<strong><strong><span data-wiz-span="data-wiz-span">second, The okhttp of the<span class="Apple-tab-span"><span data-wiz-span="data-wiz-span"> <span data-wiz-span="data-wiz-span">package after the interface</span> </span></span> </span></strong></strong><strong><strong><span data-wiz-span="data-wiz-span"><br></span></strong></strong><p><p></p></p><p><p>Comparison of Android network request libraries</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service