OHHTTPStubs provides only NSURLRequest instance, which body (parameters) could not be easily examined, because body would be shipped with NSInputStream (request.HTTPBodyStream).
AMEURLSession itself accepts parameters as a NSDictionary, so it is better place to examine request body.
OHHTTPStubs provides only NSURLRequest instance, which body (parameters) could not be easily examined, because body would be shipped with NSInputStream (
request.HTTPBodyStream
).AMEURLSession itself accepts parameters as a NSDictionary, so it is better place to examine request body.