Hello!
On Tue, Aug 20, 2013 at 10:33 PM, jijilu wrote:
>
> But I haven't seen the gzip module do *decompression* for *requests*.
>
No, it doesn't. The standard gzip module is an output filter module
which works on responses only.
> That is, if a request body is compressed (say a POST of a large request
> containing some client data which is compressed, including *request* header
> Content-Encoding: gzip), does nginx support decompressing that request
> before handing the (now decompressed) request to some backend server?
>
There is no native support for that in the Nginx core. But you can
easily use a bit of Lua to do the decompression yourself atop the
ngx_lua module:
http://wiki.nginx.org/HttpLuaModule
> or, to use the http://math2.org/luasearch/zip.html#zip_open maybe need many
> temp files?
>
You can certainly do in-memory decompression by a proper Lua binding
library for zlib, just as the standard ngx_gzip module that never
touches the file system. You don't have to use this zip_open thing.
Regards,
-agentzh