123456789101112131415161718192021222324 |
- #include <AlgorithmModel.h>
- #include <qstring.h>
- #include <map>
- #include "httplib.h"
- using namespace httplib;
- class HttpServer
- {
- public:
- static int RunHttpServer();
- //static std::map<QString, AlgorithmModel*> m_plugins;
- static void fn(struct mg_connection* c, int ev, void* ev_data, void* fn_data);
- private:
- //static void SaveLog(QString msg);
- //static char* GetStringSilce(const char* source, int offset, int lenght);
- static std::string stringUTF8(const std::string& str);
- static std::string UTF8string(std::string strTemp);
- //static char* UTF82WCS(const char* szU8, int lenght);
- static std::string log(const Request& req, const Response& res);
- static std::string dump_headers(const Headers& headers);
- };
- //std::map<QString, AlgorithmModel*> HttpServer::m_plugins = new ;
|