文件名称:lluver:裸露的 lua http api-server
文件大小:12KB
文件格式:ZIP
更新时间:2024-07-04 20:16:03
Lua
卢弗 一个 lua api 服务器,旨在让您摆脱困境。 #例子 local lluver = require " lluver " local server = lluver. create () -- binds to port 8080 by default server: get ( " /:name/hello " , function ( req ) -- easily parameterize your urls return " Hey " .. req. urlParams . name .. " ! " -- if you just want to return json or something, put it here! end ) server: start () -- make it get ready (you can start more than on
【文件预览】:
lluver-master
----luvver-0.1-2.rockspec(556B)
----src()
--------lluver()
--------lluver.lua(5KB)
----README.md(487B)
----LICENSE.txt(11KB)