cappuccino/cappuccino — pull request #2286 by cacaodev (2014-12-14 22:52:58+00:00)
Title: CPURLConnection +sendAsynchronousRequest:queue:completionHandler:

NEW: CPURLConnection -operation, CPError CPURLErrorDomain

CPURLConnection -operation gives access to the operation created with the completionHandler argument. This is an addition compared to cocoa.
This allows to create dependencies between operations and setup priorities.
When the connection fails (with a status code indicating an error) or is canceled, the operation is also canceled and the next operation in the queue is started.

With test Manual/CPURLAsynConnectionTest/ that requires to be run in a web server with php.
Known issue: if you cancel a connection before it received any response, the dependent operations are not performed. I need to check if this is a bug in CPOperation or not.