同步操作将从 不行就再写一个/pond 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
[Core] 增加了Context.current();
[Security] 增加了2模块 RBAC(基于角色的身份验证)和 BA(Http Basic Authentication)
RBAC
BA
HttpBasicAuth ba = new HttpBasicAuth("basic")
.validator((user, pass) -> "user".equals(user) && "pass".equals(pass)
);
Pond.init().debug(HttpBasicAuth.class).cleanAndBind(
p -> p.get("/secret", ba.auth, (req, resp) -> {
resp.send(200, "Welcome " + ba.user(req.ctx()));
})
).listen(9090);
[Core] 增加了pond-core模块
该模块提供了一套抽象的 服务,执行,上下文 基础类用来实现一些高层次的执行控制
例如权限, 工作流等
[Web] 删除了pond-web-acl模块
[Web] 现在pond-web模块依赖于pond-core模块
[Security] 增加了pond-security模块
[Web] Normalize path-pattern to regexp
[Web] Add a new SPI: PathToRegCompiler
[Global] Rename core to web
[Web] Stabilise http server implements with netty
[Web] Change Routing algorithms
Now the Ctx-Executor will exec one and only one middleware at once in each thread. Executor does not have any information of whether there is a next or not. The pipeline is configured by the middleware itself.
The Router is now a regular middleware. Routers handle the executing chain by the state of Ctx.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。