------------------ 原始邮件 ------------------
发件人: 杨阳 <yang...@upai.com>
发送时间: 2015年12月22日 17:32
收件人: openresty <openresty@googlegroups.com>
主题: [openresty] Re: how can I get variables in c module
就是我通过 set 方法设置了一个变量,在access 阶段赋值了,然后我想在 c 的其他模块中获取这个变量值,可以做到吗?
我提供的参数只有 ngx_http_request * r, 不知道如何获取变量,还是说lua方式设置的变量在其他c模块就获取不到了吗?
在 2015年12月22日星期二 UTC+8下午1:43:52,杨阳写道:
Hi,
suppose I set a ngx.var.xxx in access phase, and I want to get the value in header_filter of c module which exec before your lua module ? how to get ? can these variables be passed into subrequest? thanks.
--