CosRequestHeaderKey.cs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace COSXML.Common
  5. {
  6. public sealed class CosRequestHeaderKey
  7. {
  8. public const string COS_SESSION_TOKEN = "x-cos-security-token";
  9. public const string AUTHORIZAIION = "Authorization";
  10. public const string CONTENT_TYPE = "Content-Type";
  11. public const string X_COS_ACL = "x-cos-acl";
  12. public const string X_COS_GRANT_READ = "x-cos-grant-read";
  13. public const string X_COS_GRANT_WRITE = "x-cos-grant-write";
  14. public const string X_COS_GRANT_FULL_CONTROL = "x-cos-grant-full-control";
  15. public const string CACHE_CONTROL = "Cache-Control";
  16. public const string CONTENT_DISPOSITION = "Content-Disposition";
  17. public const string CONTENT_ENCODING = "Content-Encoding";
  18. public const string EXPIRES = "Expires";
  19. public const string X_COS_COPY_SOURCE = "x-cos-copy-source";
  20. public const string X_COS_METADATA_DIRECTIVE = "x-cos-metadata-directive";
  21. public const string X_COS_COPY_SOURCE_IF_MODIFIED_SINCE = "x-cos-copy-source-If-Modified-Since";
  22. public const string X_COS_COPY_SOURCE_IF_UNMODIFIED_SINCE = "x-cos-copy-source-If-Unmodified-Since";
  23. public const string X_COS_COPY_SOURCE_IF_MATCH = "x-cos-copy-source-If-Match";
  24. public const string X_COS_COPY_SOURCE_IF_NONE_MATCH = "x-cos-copy-source-If-None-Match";
  25. public const string X_COS_STORAGE_CLASS = "x-cos-storage-class";
  26. public const string X_COS_COPY_SOURCE_RANGE = "x-cos-copy-source-range";
  27. // 限速
  28. public const string X_COS_TRAFFIC_LIMIT = "x-cos-traffic-limit";
  29. public const string ORIGIN = "Origin";
  30. public const string ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method";
  31. public const string ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers";
  32. public const string IF_MODIFIED_SINCE = "If-Modified-Since";
  33. public const string IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
  34. public const string IF_MATCH = "If-Match";
  35. public const string IF_NONE_MATCH = "If-None-Match";
  36. public const string TEXT_PLAIN = "text/plain";
  37. public const string APPLICATION_OCTET_STREAM = "application/octet-stream";
  38. public const string RANGE = "Range";
  39. public const string VERSION_ID = "versionId";
  40. public const string ENCODING_TYPE = "Encoding-type";
  41. public const string PART_NUMBER_MARKER = "part-number-marker";
  42. public const string MAX_PARTS = "max-parts";
  43. public const string CONTENT_MD5 = "Content-MD5";
  44. public const string RESPONSE_CONTENT_TYPE = "response-content-type";
  45. public const string RESPONSE_CONTENT_LANGUAGE = "response-content-language";
  46. public const string RESPONSE_CACHE_CONTROL = "response-cache-control";
  47. public const string RESPONSE_CONTENT_DISPOSITION = "response-content-disposition";
  48. public const string RESPONSE_CONTENT_ENCODING = "response-content-encoding";
  49. public const string RESPONSE_EXPIRES = "response-expires";
  50. }
  51. }