Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: Reorder output chain when subrequests are used

$
0
0
Hello!

On Sat, May 04, 2013 at 01:52:12AM +0400, Marat Dakota wrote:

> Hi.
>
> Let's suppose we've called ngx_http_output_filter(r, "aaa") for the main
> request, then we've called ngx_http_subrequest() and then
> ngx_http_output_filter(r, "bbb") for the main request.
>
> Let's suppose the subrequest's handler has called
> ngx_http_output_filter(sr, "ccc").
>
> So, the result will be "aaacccbbb".
>
> What is the proper way to reorder main request's output chain to get
> "aaabbbccc" (i.e. how to move subrequest's output chain to the end of the
> main output chain)?

Proper way is to output "aaa", then "bbb", and then call a
subrequest.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>