Web micro-framework like flask in C++.
Very Very Experimental Web micro-framework like flask in C++.
DO NOT USE THIS IN PRODUCTION
#include "clask/core.hpp"
int main() {
auto s = clask::server();
s.GET("/", [](clask::request& req) {
return "OK!";
});
s.GET("/foo", [](clask::response& resp, clask::request& req) {
resp.set_header("content-type", "text/html");
resp.write("he<b>l</b>lo");
});
s.run();
}
MIT
This product contains following third-party libraries:
Yasuhiro Matsumoto (a.k.a. mattn)