基于RxJava的函数式Reactive风格的Javaweb框架。
示例代码:
public static void mai(Strig[] args) { // Note the Server class here is foudatio.stack.datamill.http.Server Server server = ew Server( rb -> rb.ifMethodAdUriMatch(Method.GET, "/status", r -> r.respod(b -> b.ok())) .elseIfMethodAdUriMatch(Method.GET, "/hello", r -> r.respod(b -> b.ok("Hello world!"))) .orElse(r -> r.respod(b -> b.otFoud()))); server.liste(8081);}









评论