#include "HttpServer.h" CHttpServer::CHttpServer() { mHttpServer = new QHttpServer; mHttpServer->route("/", []() { // return " \ // \ // \ // Page Title\ // \ // \ // \ //

This is a Heading

\ //

This is a paragraph.

\ // \ // \ // "; // return " \ // \ // \ // \ //

My First JavaScript

\ // \ // \ // \ //

\ // \ // \ // "; return "\ \ \ \

SVG rect Element

\ \ \ \ Sorry, your browser does not support inline SVG. \ \ \ \ "; }); mHttpServer->route("/test", []() { return " \ \ \ Page Title\ \ \ \

This is a Heading

\

This is a paragraph.

\ \ \ "; }); const auto port = mHttpServer->listen(QHostAddress::Any,8080); qDebug("Server Opened"); } CHttpServer::~CHttpServer() { delete mHttpServer; }