QCloudGetBucketCORSRequest Class Reference

Inherits from QCloudBizHTTPRequest
Declared in QCloudGetBucketCORSRequest.h
QCloudGetBucketCORSRequest.m

Overview

查询存储桶(Bucket) 跨域访问配置信息的方法.

功能说明

COS 支持查询当前 Bucket 跨域访问配置信息,以确定是否配置跨域信息.当跨域访问配置不存在时,请求 返回403

关于查询存储桶(Bucket) 跨域访问配置信息接口的具体描述,请参考:https://cloud.tencent.com/document/product/436/8274

示例

@code

QCloudGetBucketCORSRequest* corsReqeust = [QCloudGetBucketCORSRequest new];
corsReqeust.bucket = @"testBucket-123456789";

[corsReqeust setFinishBlock:^(QCloudCORSConfiguration * _Nonnull result,
                                        NSError * _Nonnull error) {
//CORS设置封装在result中。
}];

[[QCloudCOSXMLService defaultCOSXML] GetBucketCORS:corsReqeust];

  bucket

存储桶名

@property (strong, nonatomic) NSString *bucket

Declared In

QCloudGetBucketCORSRequest.h