Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 12287 invoked from network); 17 Jan 2009 20:29:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2009 20:29:06 -0000 Received: (qmail 37796 invoked by uid 500); 17 Jan 2009 20:29:06 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 37771 invoked by uid 500); 17 Jan 2009 20:29:06 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 37762 invoked by uid 500); 17 Jan 2009 20:29:06 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 37759 invoked by uid 99); 17 Jan 2009 20:29:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2009 12:29:06 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2009 20:29:05 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 718B0118D6 for ; Sat, 17 Jan 2009 20:28:45 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: couchdb-commits@incubator.apache.org Date: Sat, 17 Jan 2009 20:28:45 -0000 Message-ID: <20090117202845.18146.22139@eos.apache.org> Subject: [Couchdb Wiki] Update of "ExternalProcesses" by JasonDavies X-Virus-Checked: Checked by ClamAV on apache.org 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.