#include #include "UltraSimpleStaticFileHandler.H" #include static const char * hello_world_html = u8R"HERE(

Sharing is caring

Hello World!

It works

It seems like a working page has been served

)HERE"; class UltraSimpleStaticFileHandler : StaticFileHandler { public: int answer_pathreq(const char * const path, struct mg_connection *conn) { mg_printf(conn, "HTTP/1.0 200 OK\r\n" "Content-Length: %d\r\n" "Content-Type: text/html\r\n\r\n%s", hello_world_html.size(), hello_world_html.c_str()); return 0; } };