#include "HttpServer.h" CHttpServer::CHttpServer() { mHttpServer = new QHttpServer; mHttpServer->route("/", []() { // return " \ // \ //
\ //This is a paragraph.
\ // \ // \ // "; // return " \ // \ // \ // \ //This is a paragraph.
\ \ \ "; }); const auto port = mHttpServer->listen(QHostAddress::Any,8080); qDebug("Server Opened"); } CHttpServer::~CHttpServer() { delete mHttpServer; }