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