ONGResourceResponse Class Reference
Inherits from | NSObject |
---|---|
Declared in | ONGResourceResponse.h |
rawResponse
The raw response object
@property (nonatomic, readonly) NSHTTPURLResponse *rawResponse
Declared In
ONGResourceResponse.h
allHeaderFields
The received HTTP response headers. A shortcut for rawResponse.allHeaderFields
@property (nonatomic, copy, readonly) NSDictionary *allHeaderFields
Declared In
ONGResourceResponse.h
statusCode
The HTTP response status code. A shortcut for rawResponse.statusCode
@property (nonatomic, readonly) NSInteger statusCode
Declared In
ONGResourceResponse.h
data
The response body data.
@property (nonatomic, readonly, nullable) NSData *data
Discussion
The SDK doesn’t perform any data mapping and leaves this up to you. You may want to process this data as JSON, for example.
Declared In
ONGResourceResponse.h