store private per request data from a module

Igor Sysoev igor at sysoev.ru
Fri May 6 22:40:45 MSD 2011


On Fri, May 06, 2011 at 11:39:11AM -0700, Qun-Ying wrote:
> Hi,
> 
> I would like to know is it possible to store some private per request data
> structure (like a state machine that need to remember the current state due
> to async operation, and continue from the previous state when data continue)
> from a module without invading into nginx's ngx_http_request_t structure? Is
> there a sample module code to look at?

ngx_http_set_ctx()
ngx_http_get_module_ctx()


-- 
Igor Sysoev



More information about the nginx-devel mailing list