summaryrefslogtreecommitdiff
path: root/includes/HttpActionStatic.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-25 13:29:29 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-25 13:29:29 -0800
commita4eb01224bace97138be97d41f6691d649032cef (patch)
tree92041f8977dbb61f089a154614fff07939d537d0 /includes/HttpActionStatic.h
parent1a5c9e6f03345bd2585928e7a6f51a5eec0c3919 (diff)
Adding HttpActionStatic.
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;
+};
+
+};