酷店

MtopExtResponse.h 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // MtopExtResponse.h
  3. // mtopext
  4. //
  5. // Created by 亿刀/禚来强 on 16/6/15.
  6. // Copyright © 2016年 亿刀/禚来强. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class MtopExtRequest;
  10. @class MtopError;
  11. @interface MtopExtResponse : NSObject
  12. /* http 状态码 */
  13. @property(assign, nonatomic, readonly) int httpStartusCode;
  14. /* 错误信息 */
  15. @property(strong, nonatomic, readonly) MtopError *error;
  16. /* http响应头 */
  17. @property(strong, nonatomic, readonly) NSDictionary *responseHeaders;
  18. /* 二进制响应 */
  19. @property(strong, nonatomic, readonly) NSData *responseData;
  20. /* 原始的http响应body */
  21. @property(strong, nonatomic, readonly) NSString *responseString;
  22. /* json响应,从http body 解析 */
  23. @property(strong, nonatomic, readonly) NSDictionary *responseJsons;
  24. /* 响应对应的API Request */
  25. @property(strong, nonatomic, readonly) MtopExtRequest *request;
  26. /* 底层发出去的URL */
  27. @property(strong, nonatomic, readonly) NSURL *requestURL;
  28. @property(assign, nonatomic) BOOL isLoginCancel;
  29. @property(assign, nonatomic) BOOL isAuthCancel;
  30. @end