couchbaselabs/CouchCocoa — pull request #9 by dlvenable (2012-02-02 02:57:22+00:00)
Title: Support for managing cookies & ability to replace existing replication requests

Support for managing cookies
I added a new property to RESTResource, useIndependentCookies. If this is set to true then that resource and children of that resource will manage their cookies independent of the built-in iOS management. This is helpful because we have one client which connects to one server with different session cookies.

Ability to replace existing replication requests
The existing replicationFromDatabaseAtURL method on CouchDatabase returns an existing pull if one exists. Because the CouchPersistentReplication makes up to 10 delete attempts, our client was not able to call wait on the deleteDocument RESTOperation. It would only wait on the first delete. This solution is to cause the server to start the delete and also return a new pull request.