Hello!
On Thu, Jun 9, 2016 at 4:26 PM, Nacim Idjakiréne wrote:
> What i am exactly doing is : in access_by_lua i get the request headers, and
> in log_by_lua a would like to get the response header, and sand all this to
> a mongoDB database, so is it best to send ALL my headers (response + request
> ) in log_by_lua ?
>
Well, you could do that via a nonblocking mongodb driver for OpenResty
as well as ngx.timer.at(). See the following library for reference:
https://github.com/cloudflare/lua-resty-logger-socket
Regards,
-agentzh