Creating a module, I want to read in from config desired http header
Then, during config still, I want to get the struct offset for the
that have dedicated pointers in the header_in struct. It seems that when
access headers_in_hash from the main config, it is uninitialized. I can
in the code that there is
ngx_http_init_headers_in_hash(ngx_conf_t *cf, ngx_http_core_main_conf_t
in ngx_http.c. It seems to be called when the main conf is being
though I am not certain yet.
Where and when exactly is headers_in_hash initialized? If I wanted to
from it during ngx_http_X_merge_loc_conf(), what would I need to do? Or
I supposed to do it at some point later?
Thanks in advance,
Posted at Nginx Forum: