summaryrefslogtreecommitdiff
path: root/includes/HttpActionStatic.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/HttpActionStatic.h')
-rw-r--r--includes/HttpActionStatic.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/HttpActionStatic.h b/includes/HttpActionStatic.h
new file mode 100644
index 0000000..76be287
--- /dev/null
+++ b/includes/HttpActionStatic.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <HttpServer.h>
+
+namespace Balau {
+
+class HttpActionStatic : public HttpServer::Action {
+ public:
+ // the regex needs a capture on the file name.
+ HttpActionStatic(const String & base, Regex & url) : Action(url), m_base(base) { }
+ private:
+ virtual bool Do(HttpServer * server, Http::Request & req, HttpServer::Action::ActionMatch & match, IO<Handle> out) throw (GeneralException);
+ String m_base;
+};
+
+};