Skip to content
Newer
Older
100644 38 lines (30 sloc) 1.13 KB
96b2053 @mattgemmell MGTwitterEngine re-import.
authored Aug 9, 2008
1 //
2 // MGTwitterHTTPURLConnection.h
3 // MGTwitterEngine
4 //
5 // Created by Matt Gemmell on 16/02/2008.
6 // Copyright 2008 Instinctive Code.
7 //
8
9 #import "MGTwitterEngineGlobalHeader.h"
10
11 #import "MGTwitterRequestTypes.h"
12
13 @interface MGTwitterHTTPURLConnection : NSURLConnection {
14 NSMutableData *_data; // accumulated data received on this connection
15 MGTwitterRequestType _requestType; // general type of this request, mostly for error handling
16 MGTwitterResponseType _responseType; // type of response data expected (if successful)
17 NSString *_identifier;
18 NSURL *_URL; // the URL used for the connection (needed as a base URL when parsing with libxml)
19 }
20
21 // Initializer
22 - (id)initWithRequest:(NSURLRequest *)request delegate:(id)delegate
23 requestType:(MGTwitterRequestType)requestType responseType:(MGTwitterResponseType)responseType;
24
25 // Data helper methods
26 - (void)resetDataLength;
27 - (void)appendData:(NSData *)data;
28
29 // Accessors
30 - (NSString *)identifier;
31 - (NSData *)data;
32 - (NSURL *)URL;
33 - (MGTwitterRequestType)requestType;
34 - (MGTwitterResponseType)responseType;
35 - (NSString *)description;
36
37 @end
Something went wrong with that request. Please try again.