Request method in .lp file - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Request method in .lp file (/showthread.php?tid=2314) |
Request method in .lp file - buuuudzik - 02.11.2019 Hi I'm searching a way to get info about request method in .lp file. Probably it is in variable __ngx_req but how can I deal with userdata objects? RE: Request method in .lp file - Erwin van der Zwart - 02.11.2019 Hi, Can you explain what you try to achieve? BR, Erwin RE: Request method in .lp file - buuuudzik - 02.11.2019 Of course, I want prepare a file config.lp which would handle the GET and POST requests based on request method. As simple as that RE: Request method in .lp file - admin - 02.11.2019 Use ngx.var.request_method RE: Request method in .lp file - buuuudzik - 02.11.2019 Perfect. Thank you all How can I set header for response? |