What are the similarities and differences between restkit and asihttprequest frameworks?

Source: Internet
Author: User

Asihttprequest is based on cfnetwork and mainly provides the following functions:

  1. Encapsulate HTTP Request/response;
  2. Supports synchronous/asynchronous requests and gzip compression;
  3. Support Queue (asinetworkqueue );
  4. Some auxiliary functions around HTTP Request/response, such as visa, Cookie, bandwidth control, download and upload;
  5. Through delegate, You can perceive the Request status. You can perform operations such as UI updating based on this;
  6. The author also added support for the Amazon S3 request visa encapsulation and racksspace cloud files;

Restkit is based on nsurlconnection and mainly provides the following functions:

  1. Supports HTTP Request/response (synchronous/asynchronous );
  2. Support Queue (rkrequestqueue );
  3. Supports object (s) ing (pretty good !);
  4. Supports core data;
  5. Supports JSON/XML parsing;
  6. Services related to restful web services;
  7. Embedding support for three20;
  8. Similarly, the delegate perceives the Request status and performs corresponding processing;

As shown in the comparison above

  • If you are using HTTP Request/response-related applications, both of them are suitable for you;
  • If it is partial to restful, restkit is more suitable. The support for coredata for object (s) ing is his highlight;
  • Restkit also sets up the JSON/XML parsing process for you. If you need it right away, you will be waiting for it;
  • Restkit supports three20 tableview. If you choose three20 In the UI, The three20 will be better;
  • Asihttprequest's visa encapsulation for Amazon S3 requests and support for the rackspace cloud files API save you a lot of time to use these two cloud computing companies;

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.