Hello, 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.
— Hưng > On Sep 7, 2015, at 9:07 PM, hack988 <[email protected]> wrote: > > Hello everybody: > Is Anyone can anwer my question? thanks very mach; > > hack988 > > From: hack988 <mailto:[email protected]> > Date: 2015-09-05 21:20 > To: nginx-devel <mailto:[email protected]> > 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. > > hack988 > _______________________________________________ > nginx-devel mailing list > [email protected] > http://mailman.nginx.org/mailman/listinfo/nginx-devel
_______________________________________________ nginx-devel mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx-devel
