Fast
45,000+ requests per second with Keep-Alive. Built on Navi's async I/O.
use sake.{Engine, func_handler};
fn main() throws {
let app = Engine.with_defaults();
app.get("/", func_handler(|ctx| {
ctx.string("Hello, Sake.");
}));
app.get("/api/users/:id", func_handler(|ctx| {
let id = ctx.param("id");
try? ctx.json({"id": id});
}));
try app.run(":8080");
}