我用POST请求一些东西,服务器只发送内容长度为0的状态码200.我怎么处理这个?我不允许在没有映射的情况下添加RKResponseDescriptor,也不允许添加RKResponseDescriptor. 啊,我刚刚发现,你可以为
{ RKObjectMapping* responseMapping = [RKObjectMapping mappingForClass:[NSNull class]]; RKResponseDescriptor* response = [RKResponseDescriptor responseDescriptorWithMapping:responseMapping method:RKRequestMethodAny pathPattern:@"entry/sync" keyPath:nil statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)]; [restObjectManager addResponseDescriptor:response]; }
请告诉我这是否正确.