aliyun-oss-react-native

OSSDefine.h 3.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // OSSDefine.h
  3. // AliyunOSSiOS
  4. //
  5. // Created by zhouzhuo on 5/1/16.
  6. // Copyright © 2016 zhouzhuo. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #ifndef OSSDefine_h
  10. #define OSSDefine_h
  11. #if TARGET_OS_IOS
  12. #define OSSUAPrefix @"aliyun-sdk-ios"
  13. #elif TARGET_OS_OSX
  14. #define OSSUAPrefix @"aliyun-sdk-mac"
  15. #endif
  16. #define OSSSDKVersion @"2.10.4"
  17. #define OSSListBucketResultXMLTOKEN @"ListBucketResult"
  18. #define OSSNameXMLTOKEN @"Name"
  19. #define OSSDelimiterXMLTOKEN @"Delimiter"
  20. #define OSSMarkerXMLTOKEN @"Marker"
  21. #define OSSKeyMarkerXMLTOKEN @"KeyMarker"
  22. #define OSSNextMarkerXMLTOKEN @"NextMarker"
  23. #define OSSNextKeyMarkerXMLTOKEN @"NextKeyMarker"
  24. #define OSSUploadIdMarkerXMLTOKEN @"UploadIdMarker"
  25. #define OSSNextUploadIdMarkerXMLTOKEN @"NextUploadIdMarker"
  26. #define OSSMaxKeysXMLTOKEN @"MaxKeys"
  27. #define OSSMaxUploadsXMLTOKEN @"MaxUploads"
  28. #define OSSIsTruncatedXMLTOKEN @"IsTruncated"
  29. #define OSSContentsXMLTOKEN @"Contents"
  30. #define OSSUploadXMLTOKEN @"Upload"
  31. #define OSSKeyXMLTOKEN @"Key"
  32. #define OSSLastModifiedXMLTOKEN @"LastModified"
  33. #define OSSETagXMLTOKEN @"ETag"
  34. #define OSSTypeXMLTOKEN @"Type"
  35. #define OSSSizeXMLTOKEN @"Size"
  36. #define OSSStorageClassXMLTOKEN @"StorageClass"
  37. #define OSSCommonPrefixesXMLTOKEN @"CommonPrefixes"
  38. #define OSSOwnerXMLTOKEN @"Owner"
  39. #define OSSAccessControlListXMLTOKEN @"AccessControlList"
  40. #define OSSGrantXMLTOKEN @"Grant"
  41. #define OSSIDXMLTOKEN @"ID"
  42. #define OSSDisplayNameXMLTOKEN @"DisplayName"
  43. #define OSSBucketsXMLTOKEN @"Buckets"
  44. #define OSSBucketXMLTOKEN @"Bucket"
  45. #define OSSCreationDate @"CreationDate"
  46. #define OSSPrefixXMLTOKEN @"Prefix"
  47. #define OSSUploadIdXMLTOKEN @"UploadId"
  48. #define OSSLocationXMLTOKEN @"Location"
  49. #define OSSNextPartNumberMarkerXMLTOKEN @"NextPartNumberMarker"
  50. #define OSSMaxPartsXMLTOKEN @"MaxParts"
  51. #define OSSPartXMLTOKEN @"Part"
  52. #define OSSPartNumberXMLTOKEN @"PartNumber"
  53. #define OSSClientErrorDomain @"com.aliyun.oss.clientError"
  54. #define OSSServerErrorDomain @"com.aliyun.oss.serverError"
  55. #define OSSErrorMessageTOKEN @"ErrorMessage"
  56. #define OSSHttpHeaderContentDisposition @"Content-Disposition"
  57. #define OSSHttpHeaderXOSSCallback @"x-oss-callback"
  58. #define OSSHttpHeaderXOSSCallbackVar @"x-oss-callback-var"
  59. #define OSSHttpHeaderContentEncoding @"Content-Encoding"
  60. #define OSSHttpHeaderContentType @"Content-Type"
  61. #define OSSHttpHeaderContentMD5 @"Content-MD5"
  62. #define OSSHttpHeaderCacheControl @"Cache-Control"
  63. #define OSSHttpHeaderExpires @"Expires"
  64. #define OSSHttpHeaderHashSHA1 @"x-oss-hash-sha1"
  65. #define OSSDefaultRetryCount 3
  66. #define OSSDefaultMaxConcurrentNum 5
  67. #define OSSDefaultTimeoutForRequestInSecond 15
  68. #define OSSDefaultTimeoutForResourceInSecond 7 * 24 * 60 * 60
  69. #endif /* OSSDefine_h */