Hello!
On Thu, Jan 30, 2014 at 6:01 AM, rvsw wrote:
> All these works ok when the request body is not chunked
> It is not clear from the documentation what will happen if the request body
> chunked.
For chunked request bodies, the nginx core's request body reader (used
by ngx.req.read_body() and lua_need_request_body) can handle it
transparently. So it should work out of the box for you. If it is not,
please report it as a bug.
> Will the entire request body chunks be buffered and delivered OR
> will there be separate chunks. I see the following in documentation for
> ngx.req.socket.
[...]
>
> Does this pertain to ALL the API in LUA module
>
No. This limitation only applies to ngx.req.socket which implements
its own request body reader (which has nothing to do with nginx's
builtin reader).
Regards,
-agentzh