This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NSURLConnection wrapper | |
// like NSURLConnection, requires a runloop, callbacks happen in runloop that set up load | |
@interface LDURLLoader : NSObject { | |
NSURLConnection* _connection; | |
NSTimeInterval _timeout; | |
NSTimer* _timeoutTimer; | |
NSURLResponse* _response; | |
long long _responseLengthEstimate; | |
NSMutableData* _accumulatedData; | |
void (^_timeoutHandler)(void); |