summaryrefslogtreecommitdiff
path: root/lib/cocoa/src/transport/THTTPClient.h
blob: 0aabb4665c72ca5ae404fa7f0425004aa85f7bef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#import <Cocoa/Cocoa.h>
#import "TTransport.h"

@interface THTTPClient : NSObject <TTransport> {
  NSURL * mURL;
  NSMutableURLRequest * mRequest;
  NSMutableData * mRequestData;
  NSData * mResponseData;
  int mResponseDataOffset;
  NSString * mUserAgent;
  int mTimeout;
}

- (id) initWithURL: (NSURL *) aURL;

- (id) initWithURL: (NSURL *) aURL
         userAgent: (NSString *) userAgent
           timeout: (int) timeout;

- (void) setURL: (NSURL *) aURL;

@end