There are several methods, depending on which class you use to load with AFNetworking
AFHTTPRequestOperation, for example, has the following method:
setDownloadProgressBlock:^(NSInteger bytesRead, NSInteger totalBytesRead, NSInteger totalBytesExpectedToRead)
For another method, there is such a method:
setUploadProgressBlock:^(NSInteger bytesWritten,long long totalBytesWritten,long long totalBytesExpectedToWrite)
With this method, you should try to keep track of all downloaded and uploaded data.
AFJSONRequestOperationis a subclass AFHTTPRequestOperation, so this method should work in any class.
, "json-" - , . , - json - .
, [requestData length] , . , requestData HTTP-, , .
, , , , . , bytesRead coredata, , .