couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <>
Subject Re: [PROPOSAL] Allow rewrites to be JS function
Date Mon, 28 Sep 2015 15:37:18 GMT
On Mon, Sep 28, 2015 at 11:22 AM, Jason Smith <> wrote:
> 1. Basically swap the current system with Perl-compatible URL rewrites. So
> if you know Perl or sed, now you can rewrite couch requests.

vmx proposed usage regexp in rewrite rules long time ago:

But it also makes harder to read such rules. Same problem will suffer
PCRE-based rewrites: some basic transformations are simple, something
more complex will require more resources to write and to understand
after sometime. I don't talk about how to debug and test rewrite rules
- that's separate sad topic. Support of Javascript functions will
solve these issues with easy.


View raw message