// // RACSignal+RQHTTPServiceAdditions.m // RQCommon // // Created by 张嵘 on 2018/11/16. // Copyright © 2018 张嵘. All rights reserved. // #import "RACSignal+RQHTTPServiceAdditions.h" #import "RQHTTPResponse.h" @implementation RACSignal (RQHTTPServiceAdditions) - (RACSignal *)rq_parsedResults { return [self map:^(RQHTTPResponse *response) { NSAssert([response isKindOfClass:RQHTTPResponse.class], @"Expected %@ to be an RQHTTPResponse.", response); return response.parsedResult; }]; } @end