QNUploadRequestInfo.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 QNUploadRequestTypeUpLog;
  34. NS_ASSUME_NONNULL_END