32 enum class WebServerMode {
41 virtual void start() = 0;
42 virtual void stop() = 0;
43 virtual void setWebServerMode(WebServerMode mode);
44 virtual WebServerMode getWebServerMode()
const;
45 virtual WebServerMode resolveWebServerMode()
const;
47 void notifyClientConnected(
bool isPost =
false);
48 virtual void parsePost(
const char *postContent,
50 bool lastChunk =
true);
51 virtual void resetParser();
52 const char *getCsrfToken();
53 bool isCsrfTokenValid(
const char *token);
54 void setBetaProcessing();
55 void setCsrfFirstFieldRequired(
bool required);
56 void addLastStateLog(
const char *log)
const;
58 virtual bool verifyEmbeddedHttpsCertificates();
63 void addSecurityLog(Supla::SecurityLogSource source,
const char *log)
const;
64 void addSecurityLog(uint32_t source,
const char *log)
const;
77 bool destroyGenerator =
false;
79 bool keyFound =
false;
81 char key[HTML_KEY_LENGTH] = {};
82 char *value =
nullptr;
83 bool betaProcessing =
false;
84 bool csrfFirstFieldRequired =
true;
85 bool csrfValidated =
false;
86 bool csrfRejected =
false;
87 uint8_t pendingReboot = 0;
88 uint8_t csrfSecret[16] = {};
89 char csrfToken[33] = {};