mirror of
git://git.acid.vegas/anope.git
synced 2024-12-02 20:46:40 +00:00
19 lines
512 B
C
19 lines
512 B
C
|
/*
|
||
|
* (C) 2003-2022 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;
|
||
|
};
|