3 ms·
Thing like JSON, make HTTP request all require external lib in Lua. It makes thing harder for first time user. I think at least JSON or HTTP client lib should b
by kureikain 6y ago
Thing like JSON, make HTTP request all require external lib in Lua. It makes thing harder for first time user. I think at least JSON or HTTP client lib should be included?
One of my use case is use Lua as an OAuth proxy, run inside Nginx, or use Lua as a S3 Proxy(with sign signature etc) and dealing with XML/JSON/HTTP Request is hard in Lua.
When I installed an external lua rocks, for it to be embeded inside Nginx, I have to make sure lua lib path are sync between luarock/nginx.
I don't know how to solve that problem other than reading the document. But explains all of them to a new comer to Lua/Nginx is hard. It takes a lot of time until they can write code.
- pull_my_finger 6y agoThis is actually documented by OpenResty [1] [1] - https://openresty.org/en/using-luarocks.html https://openresty.org/en/using-luarocks.html