summaryrefslogtreecommitdiffhomepage
path: root/plugins/fcgi/fcgi.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-01 11:19:21 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-01 11:19:21 +0200
commitb77bb246e366d346b55cc8cfb4f1d0ac83211ae7 (patch)
treed3fda755578a4fb4084e2b4f02252c498201ed0e /plugins/fcgi/fcgi.h
parent82558fb7bfd7b0a36119d23bcd47d4cd4bd7b970 (diff)
Added fcgi module (WIP)
Diffstat (limited to 'plugins/fcgi/fcgi.h')
-rw-r--r--plugins/fcgi/fcgi.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/fcgi/fcgi.h b/plugins/fcgi/fcgi.h
new file mode 100644
index 0000000..7edfe91
--- /dev/null
+++ b/plugins/fcgi/fcgi.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "../../plugin_interface.h"
+
+class fcgi_plugin: public webserver_plugin_interface
+{
+public:
+ fcgi_plugin();
+ ~fcgi_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 fcgi_plugin webserver_plugin;
+fcgi_plugin webserver_plugin;