2
它不會讓我在請求中附加參數,我做錯了什麼? Params是一個字典,endString添加到sharedClient baseURL。Restkit獲取帶有共享客戶端的參數和阻止
[[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?