Hello!
On Mon, Jul 23, 2012 at 3:09 PM, James Wallace wrote:
> First, want to thank you for your modules for Nginx! They are helping us a
> lot.
>
My pleasure :)
> I had a quick question involving the output. It seems by default, the RAW
> tcp response is sent as output from the request. Is there a quick/easy way
> to suppress any out? I want to pass things in to Redis, but don't care
> about the response, and don't want to send anything back.
>
> Possible? Or do I need to look in to using your Lua module?
>
You can use the ngx.location.capture() function provided by ngx_lua to
do a subrequest to your redis location and discard the response
altogether.
location /api {
content_by_lua '
ngx.location.capture("/redis")
';
}
Best regards,
-agentzh
P.S. I'm cc'ing the openresty mailing list:
https://groups.google.com/group/openresty