diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-18 15:07:33 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-18 15:07:33 +0200 |
commit | 5400eaea898bcf6526d5c18fa8c274ee51081002 (patch) | |
tree | 437d91f177860bcca2f0900bb4018dfc15b35c21 /plugins/cgi/cgi.h | |
parent | 39bd177bdb80c24e73f7cf3db4239e55e13eb152 (diff) |
CGI interface
Diffstat (limited to 'plugins/cgi/cgi.h')
-rw-r--r-- | plugins/cgi/cgi.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/cgi/cgi.h b/plugins/cgi/cgi.h new file mode 100644 index 0000000..467a6c4 --- /dev/null +++ b/plugins/cgi/cgi.h @@ -0,0 +1,21 @@ +#pragma once + +#include "../../plugin_interface.h" + +class cgi_plugin: public webserver_plugin_interface +{ +public: + cgi_plugin(); + ~cgi_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 cgi_plugin webserver_plugin; +cgi_plugin webserver_plugin; |