Hello agentzh
In the routine ngx_http_lua_body_filter_by_lua, I need to determine if the directive for header_filter_by_lua was present in the conf and also another directive outside lua in the server section that I implemented.
How do I determine if these directives are there? One (crude) way is to set a kind of global flag while executing each directive, but then it would require the directive that checks for the status of other directives always parsed before those directives
I was looking for some way where I can get access to the entire conf file, but there is no clear way to access that. Through the ngx_conf_s , I can get access to ngx_conf_file_t which in turn provides access to the file buffer. However, that will provide only the buffer which is left to be parsed. It won't provide the buffer which was looked at before the current directive being parsed.
Are there any other ways to achieve this? Thanks for your inputs