dscape/nano — pull request #76 by oleics (2012-05-20 10:58:39+00:00)
Title: Added .head(doc_id, cb)

Hallo,

often it is a good thing to know if a document already exists with minimal payload. So here is the function to request the head of an document:

```js
nano.use('foo').head('bar', function(err, body, headers) {
if(error) {
// there is no document 'bar'
} else {
// yep, 'bar' is a document
}
})
```