Skip to content

Commit

Permalink
(doc) auth & SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jan 30, 2011
1 parent 4c3f308 commit a7baf2b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -176,6 +176,20 @@ To remove a document, you call the `remove()` method, passing the latest documen

If `remove` is called without a revision, and the document was recently fetched from the database, it will attempt to use the cached document's revision, providing caching is enabled.

Connecting with authentication and SSL
--------------------------------------

var connection = new(cradle.Connection)('https://couch.io', 443, {
auth: { username: 'john', password: 'fha82l' }
});

or

var connection = new(cradle.Connection)('couch.io', 443, {
secure: true,
auth: { username: 'john', password: 'fha82l' }
});

Changes API
-----------

Expand Down

0 comments on commit a7baf2b

Please sign in to comment.