I'm writing a couchdb store for pintura [1] -- one of its features I'd really like to push down to couch is conditional writes using the If header and jsonquery. This would be trivial to do with a validation function if it included the http context so's I could get at the headers. Is there any reason this isn't available? It would open the door to some other interesting possibilities as well. Sorry if this ground has been covered before -- I did a quick search through the archive and didn't find anything.
[1] http://github.com/kriszyp/pintura
