So is "rewrite_by_lua" also evil?
agentzh
agentzh at gmail.com
Sat Oct 15 11:09:36 UTC 2011
On Sat, Oct 15, 2011 at 6:43 PM, Eugaia <ngx.eugaia at gmail.com> wrote:
>
> If you were just wrapping around set_var, then no. It would only be able to
> handle non-reentrant code, just like setby.
>
Gathered so ;) I asked because I didn't want to miss any quick magic ;)
> In order to have reentrant code, it would need to have a generic layer that
> would be able to jump in/out of the script engine (and handle re-calling the
> script engine post subrequest etc). The rewrite handler would also need to
> be re-written to handle re-entering the script engine.
>
> The advantage of having a generic rewrite re-entrant layer, though, would be
> that set_var would also be able to accept subrequests etc (assuming you used
> that to base setby on).
>
I've been waiting for this feature for more than a year now ;)
Thanks!
-agentzh
More information about the nginx
mailing list