Anope IRC Services  Version 2.0
template_fileserver.h
Go to the documentation of this file.
1 /*
2  * (C) 2003-2014 Anope Team
3  * Contact us at team@anope.org
4  *
5  * Please read COPYING and README for further details.
6  */
7 
8 #include "modules/httpd.h"
9 
10 /* A basic file server. Used for serving non-static non-binary content on disk. */
12 {
14  public:
15  struct Replacements : std::multimap<Anope::string, Anope::string>
16  {
18  {
19  return insert(std::make_pair(key, ""))->second;
20  }
21  };
22 
24 
25  void Serve(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, Replacements &);
26 };
27 
TemplateFileServer(const Anope::string &f_n)
void Serve(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, Replacements &)
Anope::string & operator[](const Anope::string &key)