add Server-Sent Events protocol to db changes API. close #COUCHDB-986
authorbenoitc <benoitc@apache.org>
Wed, 16 May 2012 05:30:19 +0000 (07:30 +0200)
committerbenoitc <benoitc@apache.org>
Wed, 16 May 2012 05:30:19 +0000 (07:30 +0200)
commit093d2aa6544546a95f6133f1db3c4f4179793f3c
tree8270938dc5059c28642df477abc3b44f3c2869ba
parentaf7441d8dc48ecaee4d66322fbc1e0ce5426cf19
add Server-Sent Events protocol to db changes API. close #COUCHDB-986

This patch add support for the new specification of w3c by adding a new
feed type named `eventsource`:

http://www.w3.org/TR/2009/WD-eventsource-20090423/

This patch is based on @indutny patch with edits.
share/www/script/test/changes.js
src/couchdb/couch_changes.erl
src/couchdb/couch_httpd_db.erl