OSSRequest.h 748 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // OSSRequest.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. /**
  11. The base class of request to OSS.
  12. */
  13. @interface OSSRequest : NSObject
  14. /**
  15. Flag of requiring authentication. It's per each request.
  16. */
  17. @property (nonatomic, assign) BOOL isAuthenticationRequired;
  18. /**
  19. the flag of request canceled.
  20. */
  21. @property (atomic, assign) BOOL isCancelled;
  22. /**
  23. the flag of verification about crc64
  24. */
  25. @property (nonatomic, assign) OSSRequestCRCFlag crcFlag;
  26. /**
  27. Cancels the request
  28. */
  29. - (void)cancel;
  30. /**
  31. Gets the query parameters' dictionary according to the properties.
  32. */
  33. - (NSDictionary *)requestParams;
  34. @end