Welcome! Log In Create A New Profile

Advanced

headers_in_hash

February 14, 2014 04:39PM
Creating a module, I want to read in from config desired http header fields. Then, during config still, I want to get the struct offset for the fields that have dedicated pointers in the header_in struct. It seems that when I access headers_in_hash from the main config, it is uninitialized. I can see in the code that there is

ngx_http_init_headers_in_hash(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf)

in ngx_http.c. It seems to be called when the main conf is being generated though I am not certain yet.

Where and when exactly is headers_in_hash initialized? If I wanted to read from it during ngx_http_X_merge_loc_conf(), what would I need to do? Or am I supposed to do it at some point later?

Thanks in advance,

Ata
Subject Author Posted

headers_in_hash

atarob February 14, 2014 04:39PM

Re: headers_in_hash

Maxim Dounin February 17, 2014 10:02AM

Re: headers_in_hash

atarob February 18, 2014 02:36PM

Re: headers_in_hash

Maxim Dounin February 19, 2014 08:38AM

Re: headers_in_hash

atarob February 19, 2014 03:59PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready