couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "HTTP_Document_API" by MattGoodall
Date Tue, 19 Oct 2010 11:33:41 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "HTTP_Document_API" page has been changed by MattGoodall.
The comment on this change is: Example HEAD request/response.
http://wiki.apache.org/couchdb/HTTP_Document_API?action=diff&rev1=68&rev2=69

--------------------------------------------------

  Etag: "946B7D1C"
  Date: Thu, 17 Aug 2006 05:39:28 +0000GMT
  Content-Type: application/json
+ Content-Length: 256
  Connection: close
  
  {
@@ -140, +141 @@

  {"ok":{"_id":"test","_rev":"2-5bc3c6319edf62d4c624277fdd0ae191","hello":"foo"}}
  ]
  }}}
+ 
+ 
+ === HEAD ===
+ 
+ A HEAD request returns basic information about the document, including its current revision.
+ 
+ {{{
+ HEAD /somedatabase/some_doc_id HTTP/1.0
+ }}}
+ 
+ {{{
+ HTTP/1.1 200 OK
+ Etag: "946B7D1C"
+ Date: Thu, 17 Aug 2006 05:39:28 +0000GMT
+ Content-Type: application/json
+ Content-Length: 256
+ 
+ }}}
+ 
+ 
  <<Anchor(create_or_update_document)>>
  
  === PUT ===
@@ -268, +289 @@

  
  {"ok":true,"rev":"2839830636"}
  }}}
+ 
  === COPY ===
  Note that this is a non-standard extension to HTTP.
  

Mime
View raw message