OBSDownloadFileRequest Class Reference

Inherits from OBSBaseRequest : OBSAbstractModel : OBSMTLModel
Conforms to OBSDownloadFileProtocol
Declared in OBSDownloadFileModel.h
OBSDownloadFileModel.m

Overview

Resumable download request

Other Methods

– initWithBucketName:objectKey:downloadFilePath:

Initialize the resumable download request.

- (instancetype)initWithBucketName:(NSString *)bucketName objectKey:(NSString *)objectKey downloadFilePath:(NSString *)downloadFilePath

Parameters

bucketName

Bucket name

objectKey

Object name

downloadFilePath

File path

Return Value

Resumable download request

Declared In

OBSDownloadFileModel.h

– cancel

Cancel the request.

- (void)cancel

Declared In

OBSBaseModel.h

Other Methods

  bucketName

Bucket name

@property (nonatomic, strong, nonnull) NSString *bucketName

Declared In

OBSDownloadFileModel.h

  objectKey

Object name

@property (nonatomic, strong, nonnull) NSString *objectKey

Declared In

OBSDownloadFileModel.h

  versionID

Version ID

@property (nonatomic, strong, nonnull) NSString *versionID

Declared In

OBSDownloadFileModel.h

  ifModifiedSince

Downloads the object if it is changed after the specified point in time.

@property (nonatomic, strong, nonnull) NSDate *ifModifiedSince

Declared In

OBSDownloadFileModel.h

  ifUnmodifiedSince

Downloads the object if it remains unchanged since the specified point in time.

@property (nonatomic, strong, nonnull) NSDate *ifUnmodifiedSince

Declared In

OBSDownloadFileModel.h

  ifETagMatch

Downloads the object if its ETag is the same as the specified one.

@property (nonatomic, strong, nonnull) NSString *ifETagMatch

Declared In

OBSDownloadFileModel.h

  ifETagNoneMatch

Downloads the object if its ETag is different from the specified one.

@property (nonatomic, strong, nonnull) NSString *ifETagNoneMatch

Declared In

OBSDownloadFileModel.h

  encryption

Encryption mode

@property (nonatomic, strong, nonnull) __kindof OBSAbstractEncryption *encryption

Declared In

OBSDownloadFileModel.h

  downloadFilePath

File path

@property (nonatomic, strong, nonnull) NSString *downloadFilePath

Declared In

OBSDownloadFileModel.h

  downloadProgressBlock

File download callback

@property (atomic, copy, nonnull) OBSNetworkingDownloadProgressBlock downloadProgressBlock

Declared In

OBSDownloadFileModel.h

  enableCheckpoint

Whether resumable mode is used

@property (nonatomic, assign) BOOL enableCheckpoint

Declared In

OBSDownloadFileModel.h

  enableMD5Check

Whether to enable MD5 verification

@property (nonatomic, assign) BOOL enableMD5Check

Declared In

OBSDownloadFileModel.h

  enableForceOverwrite

Whether to enable forcible overwriting

@property (nonatomic, assign) BOOL enableForceOverwrite

Declared In

OBSDownloadFileModel.h

  checkpointFilePath

File used to record progresses of resumable download

@property (nonatomic, strong, nonnull) NSString *checkpointFilePath

Declared In

OBSDownloadFileModel.h

  partSize

Part size

@property (nonatomic, strong, nonnull) NSNumber *partSize

Declared In

OBSDownloadFileModel.h