Inherits from NSObject
Declared in CMISHttpResponse.h

Tasks

Properties

data

@property (nonatomic, strong, readonly) NSData *data

statusCode

@property NSInteger statusCode

statusCodeMessage

@property (nonatomic, strong) NSString *statusCodeMessage

Class Methods

responseUsingURLHTTPResponse:data:

wrapper for returned NSHTTPURLResponse and retrieved data

+ (CMISHttpResponse *)responseUsingURLHTTPResponse:(NSHTTPURLResponse *)HTTPURLResponse data:(NSData *)data

Discussion

wrapper for returned NSHTTPURLResponse and retrieved data

Declared In

CMISHttpResponse.h

responseWithStatusCode:statusMessage:headers:responseData:

returns a CMISHttpResponse object with HTTP status code, message headers and any response data

+ (CMISHttpResponse *)responseWithStatusCode:(int)statusCode statusMessage:(NSString *)message headers:(NSDictionary *)headers responseData:(NSData *)data

Discussion

returns a CMISHttpResponse object with HTTP status code, message headers and any response data

Declared In

CMISHttpResponse.h

Instance Methods

errorMessage

- (NSString *)errorMessage

exception

- (NSString *)exception