karelpeeters
tipsy
get("/hello") { MyClass::myFunc } class MyClass { fun myFunc(ctx: Context) { ctx.result("Hello World") } } //get signature: get(String path, Handler handler) // Handler: @FunctionalInterface public interface Handler { void handle(Context ctx) throws Exception; }
ilya.gorbunov
get("/hello") { MyClass::myFunc }
get("/hello", MyClass::myFunc)
A modern programming language that makes developers happier.