Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best substitute, successor or alternative for ASIHTTP for a download queue

I've recently read the news on http://allseeing-i.com that ASIHTTP is being discontinued. I have much respect for the makers of the library. However, I am now looking for a substitute that also supports queued download (multithreaded) on iOS, that also supports a progress bar with appropriate information.

Is there any (hopefully lightweight) library, that is in an active development livecycle? ARC support would also be much appreciated.

Many thanks for your thoughts.

like image 927
brainray Avatar asked Feb 08 '12 23:02

brainray


3 Answers

You may want to look at MKNetworkKit. In its words:

MKNetworkKit's goal was to make it as feature rich as ASIHTTPRequest yet simple and elegant to use like AFNetworking

It has a number of very nice features for queuing and managing offline situations.

like image 92
Rob Napier Avatar answered Nov 04 '22 15:11

Rob Napier


AFNetworking is being lauded as a successor to ASIHTTPRequest. It is based on operation queues, and in my experience it works reasonably well. You could probably do what you want to do without a third-party library, but if you want to make it a little easier on yourself, a combination of AFURLConnectionOperation subclasses and the AFHTTPClient class will do nicely.

like image 3
warrenm Avatar answered Nov 04 '22 15:11

warrenm


I wrote one recently. It's fully ARC compliant and fairly lightweight:

https://github.com/nicklockwood/RequestQueue

As of version 1.2 it supports download and upload progress bars (see the included ProgressLoader example).

Rather than make a monolithic framework like ASI, I've tried to keep this as simple as possible. That means you are free to mix and match it with other libraries for stuff like POST parameter generation, JSON parsing, etc.

like image 3
Nick Lockwood Avatar answered Nov 04 '22 14:11

Nick Lockwood