Search code examples
iosobjective-crestkit

Access RestKit request body


I can't find where is the body of my request? In what property?

[[RKObjectManager sharedManager] postObject:object 
                                       path:path 
                                 parameters:parameters 
                                    success:success
                                    failure:^(RKObjectRequestOperation *operation, NSError *error) {
    NSLog(@"???");
}

Now how to print whole body of request? I'd like to see the path with header and parameters.


Solution

  • I was able to see output of everything via setting:

    RKLogConfigureByName("RestKit/Network*", RKLogLevelTrace);