Hello!
On Tue, Jun 2, 2015 at 9:36 PM, rvsw wrote:
> I need to access the value of one of the variables (part of response body)
> that I set in lua during body filter stage from an nginx C module
> e.g
> I did this in Lua
> ngx.ctx.my_resp_buf = "abc"
>
No, ngx.ctx is not meant to pass data to/from other nginx C modules.
It won't work anyway.
Whereas, the nginx variables are designed for this purpose naturally
and you should use this mechanism instead (you can always manipulate
nginx variables easily on the Lua land via the ngx.var.NAME API
anyway).
Regards,
-agentzh