Mark Slee | 2ac60ed | 2007-09-19 21:10:18 +0000 | [diff] [blame] | 1 | #import <Cocoa/Cocoa.h> |
| 2 | #import "TTransport.h" |
| 3 | |
| 4 | @interface THTTPClient : NSObject <TTransport> { |
| 5 | NSURL * mURL; |
| 6 | NSMutableURLRequest * mRequest; |
| 7 | NSMutableData * mRequestData; |
| 8 | NSData * mResponseData; |
| 9 | int mResponseDataOffset; |
David Reiss | b0232b3 | 2008-01-23 20:35:39 +0000 | [diff] [blame] | 10 | NSString * mUserAgent; |
| 11 | int mTimeout; |
Mark Slee | 2ac60ed | 2007-09-19 21:10:18 +0000 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | - (id) initWithURL: (NSURL *) aURL; |
| 15 | |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 16 | - (id) initWithURL: (NSURL *) aURL |
David Reiss | b0232b3 | 2008-01-23 20:35:39 +0000 | [diff] [blame] | 17 | userAgent: (NSString *) userAgent |
Mark Slee | 2ac60ed | 2007-09-19 21:10:18 +0000 | [diff] [blame] | 18 | timeout: (int) timeout; |
| 19 | |
Mark Slee | 8440605 | 2007-11-20 01:39:25 +0000 | [diff] [blame] | 20 | - (void) setURL: (NSURL *) aURL; |
| 21 | |
Mark Slee | 2ac60ed | 2007-09-19 21:10:18 +0000 | [diff] [blame] | 22 | @end |
| 23 | |