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 "ExternalProcesses" by JasonDavies
Date Sat, 17 Jan 2009 20:28:45 GMT
Dear Wiki user,

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

The following page has been changed by JasonDavies:
http://wiki.apache.org/couchdb/ExternalProcesses

The comment on the change is:
Added missing information about returning base64-encoded data

------------------------------------------------------------------------------
  
  == JSON Response ==
  
- The response object has four possible elements
+ The response object has five possible elements
  
   * ''code'' - HTTP response code [Default is 200]
   * ''headers'' - An object with key-value pairs that specify HTTP headers to send to the
client
   * ''json'' - An arbitrary JSON object to send the client. Automatically sets the Content-Type
header to "application/json"
-  * ''body'' - An arbitrary BLOB to be sent to the client. Content-Type header default's
to "text/html"
+  * ''body'' - An arbitrary BLOB to be sent to the client. Content-Type header defaults to
"text/html"
+  * ''base64'' - Arbitrary binary data for the response body, base64-encoded
  
  While nothing breaks if you specify both a ''json'' and ''body'' member, it is undefined
which response will be used. If you specify a Content-Type header in the ''headers'' member,
it will override the default.
  

Mime
View raw message