lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I'm trying to understand how the table of tables works in the params example given here:
https://github.com/pintsized/lua-resty-http#request_pipeline

Why doesn't the value for path get overwritten with each new instance? How can I dynamically create a table of param tables to use with this method, e.g. I want to read the contents of an external file containing the following and create the table for the request_pipeline method:

/pathTo/request1.php
/pathTo/request2.php
/pathTo/request3.php
/pathTo/request4.php

thanks,
- G