Class: CouchResult

CouchResult

Encapsulates a HTTP response from a CouchDB and provides quick access to
the decoded response body.

new CouchResult(response, body)

Create a new CouchResult from a given HTTP response and body

Name Type Description
response Object

The complete response object as returned from
the 'request' library

body String

The raw body of the HTTP response

Members

bodyString

The reaw body of the HTTP response

dataObject Array

The JSON decoded body of the HTTP response

responseObject

The raw response object as returned from 'request'

See: