/* WEBSERVER MODULE Copyright (C) 2016-2019 by Xose PĂ©rez */ #pragma once #include "espurna.h" #if WEB_SUPPORT #include #include #include #include #include #include #include using web_body_callback_f = std::function; using web_request_callback_f = std::function; AsyncWebServer* webServer(); bool webAuthenticate(AsyncWebServerRequest *request); void webLog(AsyncWebServerRequest *request); void webBodyRegister(web_body_callback_f); void webRequestRegister(web_request_callback_f); uint16_t webPort(); void webSetup(); #endif // WEB_SUPPORT == 1