Just wondering which is faster in terms of performance and usability? Or if there's anything better out there?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
There's some performance information relating to an old version here:
http://allseeing-i.com/ASIHTTPRequest-1.5
It's pretty comparable. I'm not sure if there are any figures for more recent versions.
Note that the most recent ASIHTTPRequest has built in support for caching (which NSURLConnection doesn't) - if you enable that and it's applicable for your use it gets you a major speedup.
ASIHTTPRequest also does a lot of things for you for free; it can transparently handle HTTP Proxy authentication if you want it to, for example.
I pick ASIHTTPRequest over NSURLConnection all the time: for me the caching was the real major advantage, but everything else is certainly nice to have.
If you do decide to use ASIHTTPRequest, do use the latest git master, not the v1.7 release - the latter has some bugs that cause crashing when cancelling requests and a few other issues which are fixed in master.
ASIHTTPRequest is just so much better than NSURLConnection it's ridiculous. It's more powerful AND simpler. I recommend it pretty much every time I see a question here related to NSURLConnection.
I don't know of any other http client library. I'm not religious about ASIHTTPRequest--if a better tool came along, I'd use it. But ASI has SO nailed it, it's hard to think of anybody else reinventing that particular wheel.
EDIT Feb 2012: As of a few months ago, ASIHTTPRequest is deprecated and its author recommends using something else. AFNetworking seems a popular choice, though I haven't used it personally.
I mention this here because this question and answer remain popular, and it seems people don't know about this change.