Mmm Subrequests anyone?

Hello !

I am not sure that I understood this sentence from
http://www.aosabook.org/en/nginx.html :

“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:
http://forum.nginx.org/read.php?2,247521,247521#msg-247521

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

Any code example (even the most basic) ?

https://github.com/agentzh/echo-nginx-module#readme
http://wiki.nginx.org/HttpEchoModule

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) ?

https://github.com/agentzh/echo-nginx-module#readme
http://wiki.nginx.org/HttpEchoModule

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:
http://forum.nginx.org/read.php?2,247521,247554#msg-247554

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs