Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
All of your interactions with CouchDB will be through HTTP. HTTP is an open standard that is well-defined and well-represented. It is also very simple and straightforward in nature. We don’t need to go into the details of HTTP, but we can look at some of the key details.
The main element of HTTP is the method. Most people are familiar with the GET, POST, and PUT if they have done any kind of web programming, but there are a few other operations such as HEAD and DELETE that are useful when talking to CouchDB. With CouchDB, most of them have significance in the operation and their functionality:
GETRequest the specified database, document, design document, or other object or functionality. As with normal HTTP requests, the format of the URL defines what is returned. With CouchDB, this can include static items, database documents, and configuration and statistical information. In most cases, the information is returned in the form of a JSON document.