QCloudCOSXMLDownloadObjectRequest Class Reference
Inherits from | QCloudAbstractRequest |
---|---|
Declared in | QCloudCOSXMLDownloadObjectRequest.h QCloudCOSXMLDownloadObjectRequest.m |
Overview
示例
@code
QCloudCOSXMLDownloadObjectRequest * request = [QCloudCOSXMLDownloadObjectRequest new];
request.bucket = @"bucket";
request.object = @"object";
request.enableQuic = YES;
request.localCacheDownloadOffset = 本地已下载的文件大小
[request setFinishBlock:^(id _Nullable outputObject, NSError * _Nullable error) {
}];
[[QCloudCOSTransferMangerService costransfermangerServiceForKey:ServiceKey]
DownloadObject:request];
responseContentType
设置响应头部中的 Content-Type参数
@property (strong, nonatomic) NSString *responseContentType
Declared In
QCloudCOSXMLDownloadObjectRequest.h
responseContentLanguage
设置响应头部中的Content-Language参数
@property (strong, nonatomic) NSString *responseContentLanguage
Declared In
QCloudCOSXMLDownloadObjectRequest.h
responseContentExpires
设置响应头部中的Content-Expires参数
@property (strong, nonatomic) NSString *responseContentExpires
Declared In
QCloudCOSXMLDownloadObjectRequest.h
responseCacheControl
设置响应头部中的Cache-Control参数
@property (strong, nonatomic) NSString *responseCacheControl
Declared In
QCloudCOSXMLDownloadObjectRequest.h
responseContentDisposition
设置响应头部中的 Content-Disposition 参数。
@property (strong, nonatomic) NSString *responseContentDisposition
Declared In
QCloudCOSXMLDownloadObjectRequest.h
responseContentEncoding
设置响应头部中的 Content-Encoding 参数。
@property (strong, nonatomic) NSString *responseContentEncoding
Declared In
QCloudCOSXMLDownloadObjectRequest.h
range
RFC 2616 中定义的指定文件下载范围,以字节(bytes)为单位
@property (strong, nonatomic) NSString *range
Declared In
QCloudCOSXMLDownloadObjectRequest.h
ifModifiedSince
如果文件修改时间晚于指定时间,才返回文件内容。否则返回 412 (not modified)
@property (strong, nonatomic) NSString *ifModifiedSince
Declared In
QCloudCOSXMLDownloadObjectRequest.h
ifUnmodifiedModifiedSince
如果文件修改时间早于或等于指定时间,才返回文件内容。否则返回 412 (precondition failed)
@property (strong, nonatomic) NSString *ifUnmodifiedModifiedSince
Declared In
QCloudCOSXMLDownloadObjectRequest.h
ifMatch
当 ETag 与指定的内容一致,才返回文件。否则返回 412 (precondition failed)
@property (strong, nonatomic) NSString *ifMatch
Declared In
QCloudCOSXMLDownloadObjectRequest.h
ifNoneMatch
当 ETag 与指定的内容不一致,才返回文件。否则返回 304 (not modified)
@property (strong, nonatomic) NSString *ifNoneMatch
Declared In
QCloudCOSXMLDownloadObjectRequest.h
object
对象名
@property (strong, nonatomic) NSString *object
Declared In
QCloudCOSXMLDownloadObjectRequest.h
bucket
存储桶名
@property (strong, nonatomic) NSString *bucket
Declared In
QCloudCOSXMLDownloadObjectRequest.h
regionName
桶所在地域
@property (strong, nonatomic) NSString *regionName
Declared In
QCloudCOSXMLDownloadObjectRequest.h
enableMD5Verification
该选项设置为YES后,在下载完成后会比对COS上储存的文件MD5和下载到本地的文件MD5,如果MD5有差异的话会返回-340013错误码。 目前默认关闭。
@property (assign, nonatomic) BOOL enableMD5Verification
Declared In
QCloudCOSXMLDownloadObjectRequest.h
downloadingURL
如果存在改参数,则数据会下载到改路径指名的地址下面,而不会写入内存中。
@property (nonatomic, strong) NSURL *downloadingURL
Declared In
QCloudCOSXMLDownloadObjectRequest.h
localCacheDownloadOffset
本地已经下载的数据偏移量,如果使用则会从改位置开始下载,如果不使用,则从头开始下载,如果您使用了Range参数,则需要注意改参数。
@property (nonatomic, assign) int64_t localCacheDownloadOffset
Declared In
QCloudCOSXMLDownloadObjectRequest.h