-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSimpleHttpClientRequest.h
More file actions
34 lines (27 loc) · 1.05 KB
/
SimpleHttpClientRequest.h
File metadata and controls
34 lines (27 loc) · 1.05 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
#import <Foundation/Foundation.h>
#import "SimpleHttpClientWSSE.h"
enum {
SimpleHttpClientRequestMethodGET = 0,
SimpleHttpClientRequestMethodPOST = 1,
SimpleHttpClientRequestMethodPUT = 2,
SimpleHttpClientRequestMethodDELETE = 3
};
typedef NSUInteger SimpleHttpClientRequestMethod;
@interface SimpleHttpClientRequest : NSObject {
NSMutableURLRequest *_request;
}
@property (nonatomic, assign, readonly) NSMutableURLRequest *request;
- (id)initWithMethod:(SimpleHttpClientRequestMethod)method
url:(NSString *)url
parameters:(NSDictionary *)parameters
userAgent:(NSString *)userAgent
wsse:(SimpleHttpClientWSSE *)wsse
timeout:(NSTimeInterval)timeout;
- (id)initWithMethod:(SimpleHttpClientRequestMethod)method
url:(NSString *)url
headers:(NSDictionary *)headers
body:(NSString *)body
userAgent:(NSString *)userAgent
wsse:(SimpleHttpClientWSSE *)wsse
timeout:(NSTimeInterval)timeout;
@end