Mmm Subrequests anyone?

Hello !

I am not sure that I understood this sentence from
Redirecting… :

“However, nginx goes further—not only can filters perform multiple
subrequests and combine the outputs into a single response, but
subrequests
can also be nested and hierarchical”

It is pretty clear by itself, not the question, but how can one “stack”
a
response from multiple different files from one request by the client ?

Does it enables to request fileA and be able to get fileA + fileB + file
C ?
If true, it is a good way to reduce the req/s over the network.

Any code example (even the most basic) ?

Thanks

Posted at Nginx Forum:

Does it enables to request fileA and be able to get fileA + fileB + file C
?

Any code example (even the most basic) ?

rr

Hello!

On Thu, Feb 13, 2014 at 7:50 AM, Reinis R. wrote:

Does it enables to request fileA and be able to get fileA + fileB + file C
?
Any code example (even the most basic) ?

GitHub - openresty/echo-nginx-module: An Nginx module for bringing the power of "echo", "sleep", "time" and more to Nginx's config file
HTTP Echo Module | NGINX

These two links are just two copies for the same document :slight_smile:

Another example is the ngx.location.capture_multi() Lua API provided
by the ngx_lua module:

https://github.com/chaoslawful/lua-nginx-module#ngxlocationcapture_multi

Regards,
-agentzh

Many thanks I will dig into it :slight_smile:

See you

Posted at Nginx Forum: