diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-25 13:29:29 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-25 13:29:29 -0800 |
commit | a4eb01224bace97138be97d41f6691d649032cef (patch) | |
tree | 92041f8977dbb61f089a154614fff07939d537d0 /includes | |
parent | 1a5c9e6f03345bd2585928e7a6f51a5eec0c3919 (diff) |
Adding HttpActionStatic.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/HttpActionStatic.h | 16 |
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; +}; + +}; |