AFNetworking, MKNetworkKit, and ASIHTTPRequest, mknetworkkit

Source: Internet
Author: User

AFNetworking, MKNetworkKit, and ASIHTTPRequest, mknetworkkit

I have been using ASIHTTPRequest as the network library before, but since it stops updating, there may be more problems on iOS7, so I decided to change the network library.

Currently, the most popular network libraries are AFNetworking and MKNetworkKit. After some google operations, the comparison between the three libraries is as follows:

  AFNetworking MKNetworkKit ASIHTTPRequest
Update Status Relatively large number of maintenance and users Relatively few maintenance personnel and users Stop update
Supports iOS and OSX Yes Yes Yes
ARC Yes Yes No
Resumable upload No, you can use AFDownloadRequestOperation Yes Yes
Synchronous asynchronous request Only asynchronous No Yes
Image cached locally No, through SDURLCache or AFCache No No
Image cache to memory Yes Yes No
Background download Yes Yes Yes
Download progress No, you can use AFDownloadRequestOperation Yes Yes
Cache offline requests No, through SDURLCache or AFCache Yes No
JSON, XML Yes Yes No

According to the above comparison, although AFNetworking is weaker than MKNetworkKit, it has higher scalability and more maintainers, which is better than MKNetworkKit in the long term.

The above comparison is based on my own testing and data query. If any of the above is incorrect, I hope you can point it out. Thank you!




Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.