phalanx:Lua-Nginx微型框架

时间:2021-05-17 07:07:00
【文件属性】:
文件名称:phalanx:Lua-Nginx微型框架
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-17 07:07:00
Lua 方阵 目前,nginx-lua的微框架主要旨在生产轻量级,高吞吐量的api TL; DR; local app_router = require ( " phalanx.router " ): new () local route = require ( " phalanx.route " ) app_router: add ( ' book ' , route: new ( ' ^/book/(%w+) ' , require ( " myapp.controller.book " )) ) app_router: add ( ' user ' , route: new ( ' ^/user ' , require ( " myapp.controller.user " )) ) ngx. say ( app_router : route () : send_header
【文件预览】:
phalanx-master
----phalanx-0.3-1.rockspec(858B)
----.travis()
--------setup_lua.sh(2KB)
--------platform.sh(244B)
----src()
--------view()
--------phalanx()
--------controller()
----spec()
--------router_spec.lua(2KB)
--------response_spec.lua(1KB)
--------controller_spec.lua(531B)
----.travis.yml(496B)
----README.md(2KB)

网友评论