forked from iridia/IRWebAPIKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRWebAPIRequestContext.h
More file actions
38 lines (28 loc) · 1.15 KB
/
IRWebAPIRequestContext.h
File metadata and controls
38 lines (28 loc) · 1.15 KB
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
//
// IRWebAPIRequestContext.h
// IRWebAPIKit
//
// Created by Evadne Wu on 6/25/12.
//
//
#import <Foundation/Foundation.h>
#import "IRWebAPIKitDefines.h"
@interface IRWebAPIRequestContext : NSObject
@property (nonatomic, readwrite, copy) NSURL *baseURL;
@property (nonatomic, readwrite, copy) NSString *method;
@property (nonatomic, readwrite, copy) NSString *engineMethod;
@property (nonatomic, readwrite, copy) IRWebAPIResponseParser parser;
@property (nonatomic, readwrite, copy) NSData *body;
@property (nonatomic, readwrite, assign) NSTimeInterval timeout;
@property (nonatomic, readonly, copy) NSDictionary *headerFields;
- (void) removeAllHeaderFieldValues;
- (void) setValue:(id)obj forHeaderField:(NSString *)key;
@property (nonatomic, readonly, copy) NSDictionary *queryParams;
- (void) removeAllQueryParamValues;
- (void) setValue:(id)obj forQueryParam:(NSString *)key;
@property (nonatomic, readonly, copy) NSDictionary *userInfo;
- (void) removeAllUserInfoValues;
- (void) setValue:(id)obj forUserInfo:(NSString *)key;
@property (nonatomic, readwrite, strong) NSHTTPURLResponse *urlResponse;
@property (nonatomic, readwrite, strong) NSError *error;
@end