{% extends "main.html" %} {% block extrahead %} {% endblock %} {% block content %}
Blazingly Fast
Header Only
Typesafe handlers
Websocket Support
#include "crow.h"
int main()
{
crow::SimpleApp app;
CROW_ROUTE(app, "/")([](){
return "Hello world";
});
app.port(18080).run();
}
CROW_ROUTE(app, "/json")
([]{
crow::json::wvalue x{{"({{"}}"message", "Hello, World!"{{"}});"}}
x["message2"] = "Hello, World.. Again!";
return x;
});
CROW_ROUTE(app,"/hello/<int>")
([](int count){
return crow::response(std::to_string(count));
});