22 #ifndef __LIBS_WEBVIEW_SERVER_H_ 23 #define __LIBS_WEBVIEW_SERVER_H_ 25 #include <sys/types.h> 37 class WebRequestDispatcher;
38 class WebUserVerifier;
39 class WebRequestManager;
41 #define WEBVIEW_DEFAULT_CIPHERS "SECURE128:-VERS-SSL3.0:-VERS-TLS-ALL:+VERS-TLS1.2" 47 bool enable_ipv4 =
true,
bool enable_ipv6 =
true);
50 const char *key_pem_filepath,
const char *cert_pem_filepath,
51 const char *cipher_suite = WEBVIEW_DEFAULT_CIPHERS,
53 bool enable_ipv4 =
true,
bool enable_ipv6 =
true);
66 static char * read_file(
const char *filename);
69 struct MHD_Daemon *__daemon;
74 unsigned short int __port;
unsigned int active_requests() const
Get number of active requests.
void setup_basic_auth(const char *realm, WebUserVerifier *verifier)
Setup basic authentication.
Encapsulation of the libmicrohttpd webserver.
WebServer(unsigned short int port, WebRequestDispatcher *dispatcher, fawkes::Logger *logger=0, bool enable_ipv4=true, bool enable_ipv6=true)
Constructor.
Fawkes library namespace.
void process()
Process requests.
A class for handling time.
Interface for user verification.
void setup_request_manager(WebRequestManager *request_manager)
Setup this server as request manager.
Probides information about ongoing requests.
Time last_request_completion_time() const
Get time when last request was completed.
void setup_access_log(const char *filename)
Setup access log.