#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"; UltraSimpleStaticFileHandler::~UltraSimpleStaticFileHandler(){}; int UltraSimpleStaticFileHandler::answer_pathreq(const char * const path, struct mg_connection *conn) { mg_printf(conn, "HTTP/1.0 200 OK\r\n" "Content-Length: %lu\r\n" "Content-Type: text/html\r\n\r\n%s", sizeof(hello_world_html), hello_world_html); return 0; }