You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2009/11/02 21:06:55 UTC
[Couchdb Wiki] Update of "ExternalProcesses" by AdamKocoloski
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 ==