mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
e03ae0cd85
This was done with:
find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2018 Anope Team/i' {} \;
27 lines
648 B
C++
27 lines
648 B
C++
/*
|
|
* (C) 2003-2018 Anope Team
|
|
* Contact us at team@anope.org
|
|
*
|
|
* Please read COPYING and README for further details.
|
|
*/
|
|
|
|
#include "modules/httpd.h"
|
|
|
|
/* A basic file server. Used for serving non-static non-binary content on disk. */
|
|
class TemplateFileServer
|
|
{
|
|
Anope::string file_name;
|
|
public:
|
|
struct Replacements : std::multimap<Anope::string, Anope::string>
|
|
{
|
|
Anope::string& operator[](const Anope::string &key)
|
|
{
|
|
return insert(std::make_pair(key, ""))->second;
|
|
}
|
|
};
|
|
|
|
TemplateFileServer(const Anope::string &f_n);
|
|
|
|
void Serve(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, Replacements &);
|
|
};
|