1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef _APIHANDLER_ #define APIHANDLER #include <iostream> #include <string> #include <vector> #include <regex> #include "mongoose.h" using namespace std; class apiHandler { private: struct mg_connection *MyConnection; public: apiHandler(struct mg_connection*); ~apiHandler(void); int processRequest(); }; #endif