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 AdamKocoloski
Date Mon, 02 Nov 2009 20:06:55 GMT
Dear Wiki user,

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

The "ExternalProcesses" page has been changed by AdamKocoloski.
http://wiki.apache.org/couchdb/ExternalProcesses?action=diff&rev1=7&rev2=8

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

  
  The response object has five possible elements
  
-  * ''code'' - HTTP response code [Default is 200]
+  * ''code'' - HTTP response code [Default is 200]. Note that this must be a number and cannot
be a string (no "").
-  * ''headers'' - An object with key-value pairs that specify HTTP headers to send to the
client
+  * ''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 defaults to
"text/html"
   * ''base64'' - Arbitrary binary data for the response body, base64-encoded
@@ -58, +58 @@

  
   * When responding to queries always remember to turn off buffering for ''stdout'' or issue
a ''flush()'' call on the file handle.
   * All interaction is in the form of single lines. Each response should include *exactly*
one new line that terminates the JSON object.
+  * CouchDB 0.10 looks for a case-sensitive match of the Content-Type header -- a user-defined
header must specify "Content-Type", not "content-type" or "CoNtEnT-type".  This is fixed in
future releases.
  
  == Configuration ==
  

Mime
View raw message