123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
-
- using System.Collections.Generic;
- namespace Aliyun.OSS
- {
-
-
-
- public class ResponseHeaderOverrides
- {
- internal const string ResponseHeaderContentType = "response-content-type";
- internal const string ResponseHeaderContentLanguage = "response-content-language";
- internal const string ResponseHeaderExpires = "response-expires";
- internal const string ResponseCacheControl = "response-cache-control";
- internal const string ResponseContentDisposition = "response-content-disposition";
- internal const string ResponseContentEncoding = "response-content-encoding";
-
-
-
- public string ContentType { get; set; }
-
-
-
- public string ContentLanguage { get; set; }
-
-
-
- public string Expires { get; set; }
-
-
-
- public string CacheControl { get; set; }
-
-
-
- public string ContentDisposition { get; set; }
-
-
-
- public string ContentEncoding { get; set; }
- internal void Populate(IDictionary<string, string> parameters)
- {
- if (CacheControl != null)
- parameters.Add(ResponseCacheControl, CacheControl);
-
- if (ContentDisposition != null)
- parameters.Add(ResponseContentDisposition, ContentDisposition);
-
- if (ContentEncoding != null)
- parameters.Add(ResponseContentEncoding, ContentEncoding);
-
- if (ContentLanguage != null)
- parameters.Add(ResponseHeaderContentLanguage, ContentLanguage);
-
- if (ContentType != null)
- parameters.Add(ResponseHeaderContentType, ContentType);
-
- if (Expires != null)
- parameters.Add(ResponseHeaderExpires, Expires);
- }
- }
- }
|