aliyun-oss-react-native

OSSAllRequestNeededMessage.h 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // OSSAllRequestNeededMessage.h
  3. // AliyunOSSSDK
  4. //
  5. // Created by huaixu on 2018/1/22.
  6. // Copyright © 2018年 aliyun. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "OSSConstants.h"
  10. #import "OSSTask.h"
  11. /**
  12. All necessary information in one OSS request.
  13. */
  14. @interface OSSAllRequestNeededMessage : NSObject
  15. @property (nonatomic, strong) NSString * endpoint;
  16. @property (nonatomic, strong) NSString * httpMethod;
  17. @property (nonatomic, strong) NSString * bucketName;
  18. @property (nonatomic, strong) NSString * objectKey;
  19. @property (nonatomic, strong) NSString * contentType;
  20. @property (nonatomic, strong) NSString * contentMd5;
  21. @property (nonatomic, strong) NSString * range;
  22. @property (nonatomic, strong) NSString * date;
  23. @property (nonatomic, strong) NSMutableDictionary * headerParams;
  24. @property (nonatomic, copy) NSDictionary * querys;
  25. @property (nonatomic, copy) NSString *contentSHA1;
  26. @property (nonatomic, assign) BOOL isHostInCnameExcludeList;
  27. - (instancetype)initWithEndpoint:(NSString *)endpoint
  28. httpMethod:(NSString *)httpMethod
  29. bucketName:(NSString *)bucketName
  30. objectKey:(NSString *)objectKey
  31. type:(NSString *)contentType
  32. md5:(NSString *)contentMd5
  33. range:(NSString *)range
  34. date:(NSString *)date
  35. headerParams:(NSMutableDictionary *)headerParams
  36. querys:(NSMutableDictionary *)querys __attribute__((deprecated("Use -initWithEndpoint:httpMethod:bucketName:objectKey:type:md5:range:date:headerParams:querys:sha1: instead")));
  37. - (instancetype)initWithEndpoint:(NSString *)endpoint
  38. httpMethod:(NSString *)httpMethod
  39. bucketName:(NSString *)bucketName
  40. objectKey:(NSString *)objectKey
  41. type:(NSString *)contentType
  42. md5:(NSString *)contentMd5
  43. range:(NSString *)range
  44. date:(NSString *)date
  45. headerParams:(NSMutableDictionary *)headerParams
  46. querys:(NSMutableDictionary *)querys
  47. sha1:(NSString *)contentSHA1;
  48. - (OSSTask *)validateRequestParamsInOperationType:(OSSOperationType)operType;
  49. @end