Modules developing

Maxim Dounin mdounin at
Thu Oct 24 16:33:17 UTC 2013


On Thu, Oct 24, 2013 at 07:01:29PM +0400, Deymon wrote:

> Good day,
> all nginx’s developers.
> There are
> task module development for nginx.
> Upon
> receipt of the request, permitting it, we forward the request to the backend
> (e.g.  other web-server) using the modified module
> (ngx_http_proxy_module). Upon receipt the response from the server, we need to
> modify the response (buffers chunks) and send it to frontend (e.g. browser). We
> have tried to connect to the stream via:
> -    u->pipe->input_filter;
> -    r->upstream->pipe->input_filter.
> But but did
> not get the desired result.
> How to
> solve this problem? How to we need to connect to the processing chain: as a
> module-handler, filter-module?

The input_filter callback is intended to parse protocol data 
(e.g., FastCGI records).  For general response modifications 
consider writing a filter module.  Some general hints can be found 
in Evan Miller's guide, see here:

Maxim Dounin

More information about the nginx-devel mailing list