anope- supernets anope source code & configuration |
git clone git://git.acid.vegas/anope.git |
Log | Files | Refs | Archive | README |
template_fileserver.h (648B)
1 /* 2 * (C) 2003-2022 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. */ 11 class TemplateFileServer 12 { 13 Anope::string file_name; 14 public: 15 struct Replacements : std::multimap<Anope::string, Anope::string> 16 { 17 Anope::string& operator[](const Anope::string &key) 18 { 19 return insert(std::make_pair(key, ""))->second; 20 } 21 }; 22 23 TemplateFileServer(const Anope::string &f_n); 24 25 void Serve(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, Replacements &); 26 };