arq_restore/cocoastack/http/URLConnection.h
2014-07-28 14:20:07 -04:00

39 lines
972 B
Objective-C

//
// URLConnection.h
// Arq
//
// Created by Stefan Reitshamer on 5/3/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "HTTPConnection.h"
@class RFC2616DateFormatter;
@protocol DataTransferDelegate;
@class NetMonitor;
@class HTTPInputStream;
@interface URLConnection : NSObject <HTTPConnection> {
NSString *method;
id <DataTransferDelegate> delegate;
NSMutableURLRequest *mutableURLRequest;
NSURLConnection *urlConnection;
NSHTTPURLResponse *httpURLResponse;
RFC2616DateFormatter *dateFormatter;
unsigned long long totalSent;
NSMutableData *responseData;
NSUInteger responseOffset;
BOOL errorOccurred;
NSError *_error;
NSTimeInterval createTime;
NSDate *date;
NetMonitor *netMonitor;
HTTPInputStream *httpInputStream;
}
+ (NSString *)errorDomain;
- (id)initWithURL:(NSURL *)theURL method:(NSString *)theMethod dataTransferDelegate:(id <DataTransferDelegate>)theDelegate;
@end