Kevin
Kevin
location /eads { default_type application/json; content_by_lua_file /home/a/share/tengine/lua/rpc_eads.lua; } location /rpc_eads/ { gzip on; proxy_connect_timeout 200ms; # optional; control backend timeouts proxy_send_timeout 200ms; # same proxy_read_timeout 200ms; # same send_timeout 200ms;...
有如下代码: location /echo1 { content_by_lua ' local tb = {y=123,b=234,c=456} local cjson = require "cjson" local out = cjson.encode(tb) ngx.say(out) '; } 访问http://xxx/echo1会输出; {"y":123,"c":456,"b":234} 如何按原来的{"y":123,"b":234,"c":456} 输出?我知道hash table都是无序或者说是顺序不确定的,如何实现我上述需求?