How can we set a variable inside a structure in nginx using lua

I have a requirement of setting a variable inside (the nginx internal C structure) ngx_http_request_s using lua.

This variable will have a unique value for every request.

Can this be done? Does the field need to be exposed as a variable or is there some other way to do this?

Category:nginx Views:3 Time:2018-12-14
Tags: lua nginx

Related post

Copyright (C), All Rights Reserved.

processed in 0.173 (s). 11 q(s)