clask
Very Very Experimental Web micro-framework like flask in C++.
DO NOT USE THIS IN PRODUCTION
Usage
#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();
}
TODO
Unescape paths in requestUnescape query parameters in requestImplement keep-aliveServe static file- Responses oriented classes such as JSON
License
MIT
This product contains following third-party libraries:
- picohttpparser written by kazuho
Author
Yasuhiro Matsumoto (a.k.a. mattn)