gowalla/AFNetworking — Issue #89: Cancelling AFHTTPClient request operations
Author: atnan
Created: 2011-10-25 00:01:36+00:00
State: open

The new changes made as a result of #83 have been great, so first & foremost thanks for that.

I would like to propose that in addition to returning the `AFHTTPClientOperation` instance as the first argument to the `success` and `failure` callbacks, it's also returned from the following methods:

* `enqueueHTTPRequestOperationWithRequest:success:failure:`
* `getPath:parameters:success:failure:`
* `postPath:parameters:success:failure:`
* `putPath:parameters:success:failure:`
* `deletePath:parameters:success:failure:`

This would allow users of `AFHTTPClient` to track requests and cancel them directly, rather than using `cancelHTTPOperationsWithMethod:andURL:` which is a little more error prone.