Plug or plug idea
If you are an Erlang programmer (or you are looking for a new project to learn Erlang), then you can definitely write whatever you want as a plugin / extension for CouchDB. The smallest example I know is Die CouchDB, my proof of concept, which adds a single request that just stops the server.
https://github.com/iriscouch/die_couchdb
Basically, you could write a CouchDB plugin or fork to handle GET requests and do something with them.
REST Architecture Note
, REST HTTP , GET / ( 50 ).
: GET , . ; , , - , .
, , .
, , Couch, . , /_log . IP- , .
$ curl -X GET http:
{"couchdb":"Welcome","version":"1.1.0"}
$ curl localhost:5984/_log | grep userid
[Mon, 23 May 2011 00:34:54 GMT] [info] [<0.1409.0>] 127.0.0.1 - - 'GET' /?userid=abcde&windowsize=1024x768&color=blue 200
.
-, GET , . NodeJS , -, : PHP, ASP, JSP, .
GET , , , relavant .
!
source
share