20 static std::string_view getWebFrameworkVersion();
26 static bool getUseHTTPS();
30 std::unique_ptr<web::BaseTCPServer> server;
33 uint64_t parseLoggingFlags(
const json::utility::jsonObject& loggingSettings)
const;
36 std::string initLogging()
const;
38 void initHTTPS(
const json::utility::jsonObject& webFrameworkSettings)
const;
42 const json::utility::jsonObject& webFrameworkSettings,
43 const std::vector<utility::JSONSettingsParser>& jsonSettings,
44 const std::vector<std::string>& pathToSources
52 WebFramework(
const std::filesystem::path& webFrameworkConfigPath);
59 void start(
bool wait =
false,
const std::function<
void()>& onStartServer = []() {});
65 void stop(
bool wait =
true);
71 void kick(
const std::string& ip)
const;
77 std::vector<std::string> getClientsIp()
const;
83 bool isServerRunning()
const;
87 const json::JSONParser& getCurrentConfiguration()
const;