就是我通过 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.