summaryrefslogtreecommitdiffhomepage
path: root/plugins/static-files/static-files.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/static-files/static-files.h')
-rw-r--r--plugins/static-files/static-files.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/static-files/static-files.h b/plugins/static-files/static-files.h
index 7ea5500..ff35e92 100644
--- a/plugins/static-files/static-files.h
+++ b/plugins/static-files/static-files.h
@@ -7,8 +7,14 @@ class static_files_plugin: public webserver_plugin_interface
public:
static_files_plugin();
~static_files_plugin();
+
std::string name();
- std::string generate_page(std::string path);
+ 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 static_files_plugin webserver_plugin;