QCloudDeleteBucketCORSRequest Class Reference

Inherits from QCloudBizHTTPRequest
Declared in QCloudDeleteBucketCORSRequest.h
QCloudDeleteBucketCORSRequest.m

Overview

删除跨域访问配置信息的方法.

功能说明

若是 Bucket 不需要支持跨域访问配置,可以调用此接口删除已配置的跨域访问信息.

跨域访问配置可以通过 putBucketCORS(PutBucketCORSRequest) 或者putBucketCORSAsync(PutBucketCORSRequest, CosXmlResultListener) 方法来开启 Bucket 的跨域访问 支持.

关于删除跨域访问配置信息接口的具体描述,请查看https://cloud.tencent.com/document/product/436/8283.

示例

@code

QCloudDeleteBucketCORSRequest* deleteCORS = [QCloudDeleteBucketCORSRequest new];

// 存储桶名称,格式为 BucketName-APPID
deleteCORS.bucket = @"examplebucket-1250000000";

[deleteCORS setFinishBlock:^(id outputObject, NSError *error) {

    // 可以从 outputObject 中获取服务器返回的 header 信息
   NSDictionary* info = (NSDictionary *) outputObject;
}];
[[QCloudCOSXMLService defaultCOSXML] DeleteBucketCORS:deleteCORS];

  bucket

存储桶名

@property (strong, nonatomic) NSString *bucket

Declared In

QCloudDeleteBucketCORSRequest.h