From a7baf2b7af95c68e81b11014d37c9b99846defa5 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Sun, 30 Jan 2011 17:49:58 +0000 Subject: [PATCH] (doc) auth & SSL --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 5f5af21..1986022 100644 --- a/README.md +++ b/README.md @@ -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 -----------