arq_restore/http/HTTPConnectionFactory.h
Stefan Reitshamer 40ef06c9d2 Switched from NSURLConnection API to CFHTTP API.
I made this switch in Arq 2.6.3 last March, and it has been much more stable.
2012-08-20 10:00:49 -04:00

27 lines
791 B
Objective-C

//
// HTTPConnectionFactory.h
// Arq
//
// Created by Stefan Reitshamer on 3/15/12.
// Copyright 2012 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@protocol HTTPConnection;
@protocol HTTPConnectionDelegate;
@class HTTPTimeoutSetting;
@interface HTTPConnectionFactory : NSObject {
NSTimeInterval maxConnectionLifetime;
NSLock *lock;
NSMutableDictionary *connectionMapsByThreadId;
}
+ (HTTPConnectionFactory *)theFactory;
- (id <HTTPConnection>)newHTTPConnectionToURL:(NSURL *)theURL
method:(NSString *)theMethod
httpTimeoutSetting:(HTTPTimeoutSetting *)theHTTPTimeoutSetting
httpConnectionDelegate:(id <HTTPConnectionDelegate>)theHTTPConnectionDelegate;
@end