Closed gcmartijn closed 10 years ago
I think I found something.
-- construct the requests table local reqs = {} table.insert(reqs, { "/mysql" }) table.insert(reqs, { "/postgres" }) table.insert(reqs, { "/redis" }) table.insert(reqs, { "/memcached" })
-- issue all the requests at once and wait until they all return
local resps = { ngx.location.capture_multi(reqs) }
-- loop over the responses table
for i, resp in ipairs(resps) do
-- process the response table "resp"
end
will check this now
I'm testing things and want to know if this is possible ?
The goal is to output file content after a query check. The content is in this case javascript for the client.