RQHTTPRequest.h 705 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RQHTTPRequest.h
  3. // RQCommon
  4. //
  5. // Created by 张嵘 on 2018/11/16.
  6. // Copyright © 2018 张嵘. All rights reserved.
  7. // 网络服务层 - 请求
  8. #import <Foundation/Foundation.h>
  9. #import "RQURLParameters.h"
  10. #import "RACSignal+RQHTTPServiceAdditions.h"
  11. @interface RQHTTPRequest : NSObject
  12. /// 请求参数
  13. @property (nonatomic, readonly, strong) RQURLParameters *urlParameters;
  14. /**
  15. 获取请求类
  16. @param parameters 参数模型
  17. @return 请求类
  18. */
  19. + (instancetype)requestWithParameters:(RQURLParameters *)parameters;
  20. @end
  21. /// RQHTTPService的分类
  22. @interface RQHTTPRequest (RQHTTPService)
  23. /// 入队
  24. - (RACSignal *)enqueueResultClass:(Class /*subclass of RQObject*/)resultClass;
  25. @end