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教程

浅析深度学习神经网络的卷积层

浅析深度学习神经网络的卷积层 Continue reading

NC的文件复制功能

Published on October 10, 2019

Django时区与数据库被锁

Published on October 08, 2019