summaryrefslogtreecommitdiffhomepage
path: root/plugins/statistics/statistics.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-26 13:01:19 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-26 13:01:19 +0200
commitaebe139d00b44684158edb3616da5c37b12db6d1 (patch)
treef37eaa7a59523f2e7db42875e65f2ca2714c0e9d /plugins/statistics/statistics.h
parent91073ca08f5f9582196712ae6753714f3333979f (diff)
Added stats output
Diffstat (limited to 'plugins/statistics/statistics.h')
-rw-r--r--plugins/statistics/statistics.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/statistics/statistics.h b/plugins/statistics/statistics.h
new file mode 100644
index 0000000..5db309b
--- /dev/null
+++ b/plugins/statistics/statistics.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "../../plugin_interface.h"
+
+class statistics_plugin: public webserver_plugin_interface
+{
+public:
+ statistics_plugin();
+ ~statistics_plugin();
+
+ std::string name();
+ std::string generate_page(
+ std::function<std::string(const std::string& key)>& GetServerParam,
+ std::function<std::string(const std::string& key)>& GetRequestParam, // request including body (POST...)
+ std::function<void(const std::string& key, const std::string& value)>& SetResponseHeader // to be added to result string
+ );
+
+};
+
+extern "C" BOOST_SYMBOL_EXPORT statistics_plugin webserver_plugin;
+statistics_plugin webserver_plugin;