Hello!
On Sat, Aug 11, 2012 at 6:45 PM, Brian Akins <br...@akins.org> wrote:
> On Sat, Aug 11, 2012 at 12:34 AM, agentzh <age...@gmail.com> wrote:
>> * ngx_lua: implement HTTP cookie parsing API,
>
> Would this best be done in another module and not in the core? I'm
> wondering could it be pure Lua.
>
This should certainly be done on the Lua level atop the existing
ngx.req.get_headers() API and I think people have already been doing
this (or just reading ngx.var.cookie_NAME for the simplest cases).
But I think it still has some merits to add an ngx.req.get_cookies()
API in the core, like being a bit more performant by manipulating the
underlying nginx C structures directly :)
Thanks!
-agentzh