MoonScript与Simple.HTTP

作者:糖果

MoonScript调用Lapis的Simple.http,其实调用的就是OpenResty的http的接口。

candylab.moon

http = require "lapis.nginx.http"
body, status_code, headers = http.simple {
    url: 'http://moonscript.cn' 
    method: "GET"
    headers: {} 
}

candylab.lua

local http = require("lapis.nginx.http")
local body, status_code, headers = http.simple({
    url = 'http://moonscript.cn',
    method = "GET",
    headers = { }
})

糖果

糖果
LUA教程

Apache APISIX在SAE应用市场发布

Apache APISIX在SAE应用市场发布 Continue reading

APISIX后台管理路由创建接口

Published on December 06, 2019

Openresty Nginx Tengine添加动态so库

Published on October 11, 2019