can subrequest be used in a handler?

Valery Kholodkov valery+nginxen at
Wed Jul 6 14:46:16 MSD 2011

Achilles Xu wrote:
> Hi all,
> I am new to here.
> My question is: can subrequest be used in a handler?

Yes, it can.

> I saw many module are using subrequest in filter, so I was wondered.
> I want to developer a module which will get many picture files from 
> backend in parallel and combind them to one picture file and output it 
> to browser.
> Now I want to use subquest to achive it. Is that a right way?
> Maybe shall I use ngx_peer_connection_t?

I'm not familiar with such implementation, but it might be possible.

Best regards,
Valery Kholodkov

More information about the nginx-devel mailing list