MBMResponseInfo
@interface MBMResponseInfo : NSObject
The structure defines the information about the response for the resource request.
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithNoContent:(BOOL)noContent notModified:(BOOL)notModified mustRevalidate:(BOOL)mustRevalidate source:(MBMResponseSourceType)source size:(uint64_t)size modified:(nullable NSDate *)modified expires:(nullable NSDate *)expires etag:(nullable NSString *)etag error:(nullable MBMResourceRequestError *)error;
Swift
init(noContent: Bool, notModified: Bool, mustRevalidate: Bool, source: ResponseSourceType, size: UInt64, modified: Date?, expires: Date?, etag: String?, error: MBMResourceRequestError?)
-
The response has no content.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL noContent;
Swift
var noContent: Bool { get }
-
The requested resource hasn’t changed since the last time it was accessed.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL notModified;
Swift
var notModified: Bool { get }
-
The requested resource is invalidated on the server, and
map
must re-validate the resource.Declaration
Objective-C
@property (nonatomic, readonly) BOOL mustRevalidate;
Swift
var mustRevalidate: Bool { get }
-
The data source that provided the response data.
Declaration
Objective-C
@property (nonatomic, readonly) MBMResponseSourceType source;
Swift
var source: ResponseSourceType { get }
-
The size of the requested resource in bytes.
Declaration
Objective-C
@property (nonatomic, readonly) uint64_t size;
Swift
var size: UInt64 { get }
-
The timestamp of the last modification of the resource.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *modified;
Swift
var modified: Date? { get }
-
The timestamp for the time when a resource is considered to be expired.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *expires;
Swift
var expires: Date? { get }
-
The cache control identifier that defines the version of a resource.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *etag;
Swift
var etag: String? { get }
-
The optional structure that would be present if an error occurs.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) MBMResourceRequestError *error;
Swift
var error: MBMResourceRequestError? { get }