1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 13:46:38 +02:00
Files
anope/modules/extra/webcpanel/static_fileserver.h
T
2013-05-06 01:38:27 -04:00

20 lines
513 B
C++

/*
* (C) 2003-2013 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 static content on disk. */
class StaticFileServer : public HTTPPage
{
Anope::string file_name;
public:
StaticFileServer(const Anope::string &f_n, const Anope::string &u, const Anope::string &c_t);
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) anope_override;
};