in my app I'm using the new AFN 3.0 and I have
AFHTTPSessionManager *manager
instead of
AFHTTPRequestOperation *operation
my problem is that before I was able to get some data from RequestOperation as:
NSURL *url = operation.request.URL;
//or
NSNumber statusCode = operation.response.statusCode;
//or
NSData *responseData = operation.responseData;
and how can I get this elements with AFHTTPSessionManager?
thanks
in v2 you were getting
AFHTTPRequestOperation
for the requestBut in the v3 you will get
NSURLSessionTask
So based on that you can get the details the from the
NSURLSessionTask
like thecurrentRequest
,response
etcFor more changes and details, you can refer to the migration guide of AFNetworking AFNetworking Migration Guide
For NSURLSessionTask Reference : NSURLSessionTask