QNUploadRequestInfo.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // QNUploadRequestInfo.h
  3. // QiniuSDK_Mac
  4. //
  5. // Created by yangsen on 2020/5/13.
  6. // Copyright © 2020 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface QNUploadRequestInfo : NSObject
  11. /// 当前请求的类型
  12. @property(nonatomic, copy, nullable)NSString *requestType;
  13. /// 上传的bucket
  14. @property(nonatomic, copy, nullable)NSString *bucket;
  15. /// 上传的key
  16. @property(nonatomic, copy, nullable)NSString *key;
  17. /// 上传数据的偏移量
  18. @property(nonatomic, strong, nullable)NSNumber *fileOffset;
  19. /// 上传的目标region
  20. @property(nonatomic, copy, nullable)NSString *targetRegionId;
  21. /// 当前上传的region
  22. @property(nonatomic, copy, nullable)NSString *currentRegionId;
  23. - (BOOL)shouldReportRequestLog;
  24. @end
  25. extern NSString *const QNUploadRequestTypeUCQuery;
  26. extern NSString *const QNUploadRequestTypeForm;
  27. extern NSString *const QNUploadRequestTypeMkblk;
  28. extern NSString *const QNUploadRequestTypeBput;
  29. extern NSString *const QNUploadRequestTypeMkfile;
  30. extern NSString *const QNUploadRequestTypeInitParts;
  31. extern NSString *const QNUploadRequestTypeUploadPart;
  32. extern NSString *const QNUploadRequestTypeCompletePart;
  33. extern NSString *const QNUploadRequestTypeServerConfig;
  34. extern NSString *const QNUploadRequestTypeServerUserConfig;
  35. extern NSString *const QNUploadRequestTypeUpLog;
  36. NS_ASSUME_NONNULL_END