summaryrefslogtreecommitdiff
path: root/modules/webcpanel/static_fileserver.h
blob: 7ce9609aa37f288dc5d711a17bf77c8a906cb356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * (C) 2003-2017 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;
};