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 2010/04/08 20:38:17 UTC

[Couchdb Wiki] Trivial Update of "ExternalProcesses" by SebastianCohnen

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 SebastianCohnen.
The comment on this change is: added toc; added syntax hl.
http://wiki.apache.org/couchdb/ExternalProcesses?action=diff&rev1=11&rev2=12

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

  = External Processes =
+ <<TableOfContents()>>
+ 
  CouchDB now allows for the ability to develop custom behaviors via processes that communicate over ''stdin'' and ''stdout''. Requests to CouchDB that are captured by the external process handler are passed via JSON object to the external process over ''stdin'' and reads a JSON object from ''stdout''. Without further ado...
  
  == JSON Requests ==
@@ -8, +10 @@

  
  An example object:
  
- {{{
+ {{{#!highlight javascript
  {
      'body': 'undefined',
      'cookie': {
@@ -84, +86 @@

  == Example External Process ==
  Here is a complete Python external process that does a whole lot of nothing except show the mechanics.
  
- {{{
+ {{{#!highlight python
  import sys
  
  try: