Hello!
On Sun, Nov 1, 2015 at 2:49 AM, RJoshi wrote:
> What would be the most efficient way to retrieve request/response?
>
Depending on the size of your requests and responses. There're quite
some API functions exposed by ngx_lua for different use cases. You can
check them out. In particular, ngx.req.get_body_data,
ngx.req.get_body_file, ngx.req.socket, body_filter_by_lua,
ngx.location.capture, just to name a few.
Regards,
-agentzh