How to get Original response before gzip or another module filter rewrite response
hungnv at opensource.com.vn
Tue Sep 8 03:01:22 UTC 2015
I don’t know which context you are trying to do, but in order to write a chain buffer (this’s what contain nginx’s response) to file, you can use ngx_write_chain_to_file or ngx_write_chain_to_temp_file function.
Many nginx modules already use these function, take a look at ngx_http_proxy_module for more detail.
> On Sep 7, 2015, at 9:07 PM, hack988 <hack988 at 163.com> wrote:
> Hello everybody:
> Is Anyone can anwer my question? thanks very mach;
> From: hack988 <mailto:hack988 at 163.com>
> Date: 2015-09-05 21:20
> To: nginx-devel <mailto:nginx-devel at nginx.org>
> Subject: How to get Original response before gzip or another module filter rewrite response
> Dear All:
> I'm a beginner for nginx development,Although i'm read Emiller's Guide and another article about Nginx develop for several days,I still don't know how to read whole original response buffer chain copy to myself module's temporary buffer,before another module(gzip,gunzip,gzip_static) rewrite buffer.
> How to check another module is written output buffer to diffrent content type?
> I want to copy buffer to a file that no compress or chunked.
> I'm sorry for my poor english ,thx.
> nginx-devel mailing list
> nginx-devel at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx-devel