incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Binns <rog...@rogerbinns.com>
Subject Re: _rewrite handler
Date Sat, 05 Dec 2009 19:15:03 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Benoit Chesneau wrote:
> what would do this doc?

Nothing in particular - it would just be provided to the _rewrite handler
Javascript code to do with as it pleases with no prescribed behaviour.

The ways I would use it if it existed:

- - Rewrite to different URIs depending on if the request comes from an
internal or external location.  The doc would have a list of subnets
considered internal.

- - If my app had 10 components, I'd store in the doc which ones are active
and which disabled (eg disabled ones could be redirected to a page
explaining that).

- - I'd prefer to have my rules listed as data with my Javascript code
applying them.  With the current approach a Javascript has to be regenerated
on any rule change.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksasTMACgkQmOOfHg372QQi/gCfZkuPASwI4562apjU7CMOcBs5
dMUAoK4Nmy8rVJcP8AK+s7A2Ma1nyJBc
=Tjfo
-----END PGP SIGNATURE-----


Mime
View raw message