zzycami / touchcode

Automatically exported from code.google.com/p/touchcode
0 stars 0 forks source link

TouchConnection needs NSURLConnection replacement #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
NSURLConnection is handy - but widely considered to be leaky and buggy. 
Considering writing 
an open source replacement that ties into the rest of TouchConnection.

Features:

• iPhone or Mac OS 
• Simple API. Close to NSURLConnection but not too close.
• Uses standard NSURLRequest/Response. Let's no reinvent the wheel
• More control of caching. By default no caching? But hooks to add in?
• Write data to file by default or to a single NSData block. No need to 
append data chunks to get 
the body data.
• Proxy support (via SC.framework).
• Optional https support
• Optional auth (digest & basic).

Implementation:
• Some of the work has already been done with TouchHTTPD - wrapping of 
CFHTTP* in Cocoa. 
Can take that code - extend it and turn into some of what we need.

Original issue reported on code.google.com by jwight on 22 Aug 2008 at 11:30

GoogleCodeExporter commented 8 years ago
There are alternatives out there CUrlHandle, FKURLConnection etc.

Original comment by jwight on 22 Aug 2008 at 11:31

GoogleCodeExporter commented 8 years ago
Doesn't Apple accept patches for NSURLConnection?

Original comment by niklassa...@gmail.com on 23 Aug 2008 at 3:55

GoogleCodeExporter commented 8 years ago
Patches? To what? The code isn't available.

Original comment by jwight on 23 Aug 2008 at 3:57

GoogleCodeExporter commented 8 years ago

Original comment by jwight on 1 Sep 2008 at 4:39

GoogleCodeExporter commented 8 years ago

Original comment by jwight on 11 Aug 2010 at 3:58