From a4eb01224bace97138be97d41f6691d649032cef Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 25 Dec 2013 13:29:29 -0800 Subject: Adding HttpActionStatic. --- includes/HttpActionStatic.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 includes/HttpActionStatic.h (limited to 'includes/HttpActionStatic.h') 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 + +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 out) throw (GeneralException); + String m_base; +}; + +}; -- cgit v1.2.3