Files
g.hnyhua.cn/COSXML/Model/Bucket/GetBucketCORSResult.cs
2026-02-07 15:48:27 +08:00

39 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Text;
using COSXML.Model.Tag;
using COSXML.Transfer;
/**
* Copyright (c) 2018 Tencent Cloud. All rights reserved.
* 11/2/2018 10:01:37 PM
* bradyxiao
*/
namespace COSXML.Model.Bucket
{
/// <summary>
/// 获取 Bucket CORS 返回的结果
/// <see cref="https://cloud.tencent.com/document/product/436/8274"/>
/// </summary>
public class GetBucketCORSResult : CosResult
{
/// <summary>
/// 跨域资源共享配置的所有信息最多可以包含100条 CORSRule
/// <see cref="COSXML.Model.Tag.CORSConfiguration"/>
/// </summary>
public CORSConfiguration corsConfiguration;
internal override void ParseResponseBody(System.IO.Stream inputStream, string contentType, long contentLength)
{
corsConfiguration = new CORSConfiguration();
XmlParse.ParseCORSConfiguration(inputStream, corsConfiguration);
}
public override string GetResultInfo()
{
return base.GetResultInfo() + (corsConfiguration == null ? "" : "\n " + corsConfiguration.GetInfo());
}
}
}