How to send a batch request using AFNetworking 3.0

I am using AFNetworking 3.0 and I want to send a batch request. AFNetworking 2.0 - support for enqueueBatchOfHTTPRequestOperations: progressBlock: completeBlock not AFNetworking 3.0.

How can I send a request packet using AFHTTPSessionManager?

+4
source share
1 answer

AFNetworking 3.0 does not have an API for this. This is mainly due to the fact that instead NSURLConnectionof NSOperationused NSURLSession.
You have several options:

  • Use GCD dispatch groups
  • NSURLSession NSOperation, , NSOperation state NSURLSession NSOperationQueue
  • promises, GITHUB
+1

All Articles