Inherits from NSObject
Conforms to NSURLConnectionDataDelegate
Declared in CMISHttpRequest.h

Properties

additionalHeaders

@property (nonatomic, strong) NSDictionary *additionalHeaders

authenticationProvider

@property (nonatomic, strong) id<CMISAuthenticationProvider> authenticationProvider

completionBlock

@property (nonatomic, copy) void ( ^ ) ( CMISHttpResponse *httpResponse , NSError *error ) completionBlock

connection

@property (nonatomic, strong) NSURLConnection *connection

requestBody

@property (nonatomic, strong) NSData *requestBody

requestMethod

@property (nonatomic, assign) CMISHttpRequestMethod requestMethod

response

@property (nonatomic, strong) NSHTTPURLResponse *response

responseBody

@property (nonatomic, strong) NSMutableData *responseBody

Class Methods

startRequest:withHttpMethod:requestBody:headers:authenticationProvider:completionBlock:

+ (CMISHttpRequest *)startRequest:(NSMutableURLRequest *)urlRequest withHttpMethod:(CMISHttpRequestMethod)httpRequestMethod requestBody:(NSData *)requestBody headers:(NSDictionary *)additionalHeaders authenticationProvider:(id<CMISAuthenticationProvider>)authenticationProvider completionBlock:(void ( ^ ) ( CMISHttpResponse *httpResponse , NSError *error ))completionBlock

Instance Methods

cancel

- (void)cancel

initWithHttpMethod:completionBlock:

- (id)initWithHttpMethod:(CMISHttpRequestMethod)httpRequestMethod completionBlock:(void ( ^ ) ( CMISHttpResponse *httpResponse , NSError *error ))completionBlock

startRequest:

- (BOOL)startRequest:(NSMutableURLRequest *)urlRequest