Asihttprequest is based on cfnetwork and mainly provides the following functions:
- Encapsulate HTTP Request/response;
- Supports synchronous/asynchronous requests and gzip compression;
- Support Queue (asinetworkqueue );
- Some auxiliary functions around HTTP Request/response, such as visa, Cookie, bandwidth control, download and upload;
- Through delegate, You can perceive the Request status. You can perform operations such as UI updating based on this;
- 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:
- Supports HTTP Request/response (synchronous/asynchronous );
- Support Queue (rkrequestqueue );
- Supports object (s) ing (pretty good !);
- Supports core data;
- Supports JSON/XML parsing;
- Services related to restful web services;
- Embedding support for three20;
- 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;