Enqueuing operation in upload example rather than calling -start directly
This commit is contained in:
parent
349534188a
commit
cd8cee4ac8
@ -132,7 +132,7 @@ AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequ
|
||||
[operation setUploadProgressBlock:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
|
||||
NSLog(@"Sent %lld of %lld bytes", totalBytesWritten, totalBytesExpectedToWrite);
|
||||
}];
|
||||
[operation start];
|
||||
[httpClient enqueueHTTPRequestOperation:operation];
|
||||
```
|
||||
|
||||
### Streaming Request
|
||||
|
||||
Loading…
Reference in New Issue
Block a user