它不会让我将参数附加到请求中,我做错了什么?Params 是一个 Dictionary 并且 endString 添加到 sharedClient baseURL。
[[RKClient sharedClient] get:endString usingBlock:^(RKRequest *loader){
loader.params = [RKParams paramsWithDictionary:params];
loader.onDidLoadResponse = ^(RKResponse *response) {
[self parseJSONDictFromResponse:response];
};
loader.onDidFailLoadWithError = ^(NSError *error) {
NSLog(@"error2:%@",error);
};
}];
我收到此错误:RestKit was asked to retransmit a new body stream for a request. Possible connection error or authentication challenge?