lor
lor copied to clipboard
a fast, minimalist web framework for lua based on OpenResty
Is there any plans to translate docs to english? This framework seems like the perfect fit for my current project, but I barely understand anything.
Is there documentation in English?
Lor使用文档中提到的session插件是基于lua-resty-session来实现的,但是源码中好像并未引用这个lib,只是使用lua-resty-cookie简单的实现了部分功能,有考虑过在后期的版本中基于lua-resty-session重新写一个完整的session插件吗
I found out that lor on opm is still 0.3.3 which is not the latest version. Also it doesn't seem to include lord. Luarocks seems abandoned.
使用如下代码,其中util.auth_ip是一个通用写好的且存在的校验访问ip是否合法的方法 util.auth_jsonbody是一个nil ``` local user_router = lor:Router() user_router:get("/test", util.auth_ip,util.auth_jsonbody,function(req, res, next) res:status(200):send("unknown error") end) app:use("/cloud/v1", user_router()) app:run() ``` ``` curl -v http://127.0.0.1:4001/cloud/v1/test * About to connect() to 127.0.0.1 port 4001...
@sumory , 想请问一下,有哪些公司在使用lor呢? 另外能留个邮箱吗, 如果我有问题,怎么找你呢?
假设我们有一个group router `user_router`,它挂载在"user"下面,即 ```lua app:use("user", user_router()) ``` lor v0.3.0版本并不支持在这个group router里实现"/user"这个路由,即不支持以下写法: ```lua user_router:get("", function(req, rex, next) -- … end) ``` 但支持将路由挂载到"/user/",即支持: ```lua user_router:get("/", function(req, rex, next) -- … end) ``` 从语义上来讲,`/user`和`/user/`并不等价,只是有些应用服务器或是语言对此作了默认处理。...
fallback_lookup生成的pipeline会在_match中重复生成
this is a list about projects or libraries that are built with Lor framework.