-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathActiveRequest.h
52 lines (42 loc) · 1.41 KB
/
ActiveRequest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// ActiveRequest.h
// Shopify_Mobile
//
// Created by Matthew Newberry on 8/2/10.
// Copyright 2010 Shopify. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ActiveRequest : NSObject {
NSString *_urlPath;
NSString *_httpMethod;
NSData *_httpBody;
NSMutableDictionary *_parameters;
NSDictionary *_headers;
NSString *_contentType;
NSString *_user;
NSString *_password;
id _delegate;
SEL _didFinishSelector;
SEL _didFailSelector;
SEL _didParseObjectSelector;
BOOL _batch;
NSUInteger _totalBatches;
}
@property (nonatomic, assign) SEL didParseObjectSelector;
@property (nonatomic, assign) NSUInteger totalBatches;
@property (nonatomic, assign) BOOL batch;
@property (nonatomic, retain) NSString *user;
@property (nonatomic, retain) NSString *password;
@property (nonatomic, assign) id delegate;
@property (nonatomic, assign) SEL didFinishSelector;
@property (nonatomic, assign) SEL didFailSelector;
@property (nonatomic, retain) NSString *urlPath;
@property (nonatomic, retain) NSString *httpMethod;
@property (nonatomic, retain) NSData *httpBody;
@property (nonatomic, retain) NSMutableDictionary *parameters;
@property (nonatomic, retain) NSDictionary *headers;
@property (nonatomic, retain) NSString *contentType;
+ (ActiveRequest *) requestWithURLPath:(NSString *) url;
- (id) initWithURLPath:(NSString *) url;
- (void) addParameters:(NSDictionary *) params;
@end