summaryrefslogtreecommitdiff
path: root/includes/HttpActionStatic.h
blob: 76be287c4a8fd67a0eefd143f9eacf185900aed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
};

};