Is there a flag that would let me get NSData, rather than let AFNetworking convert my responseData into the corresponding data type(UIImage, NSString)?
The AFHTTPResponseSerializer
will return the raw NSData
:
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer = [AFHTTPResponseSerializer serializer];
[manager GET:... parameters:...
success:^(AFHTTPRequestOperation *operation, NSData *responseObject) {}
failure:...];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With