anope

- supernets anope source code & configuration
git clone git://git.acid.vegas/anope.git
Log | Files | Refs | Archive | README

static_fileserver.h (512B)

      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 static content on disk. */
     11 class StaticFileServer : public HTTPPage
     12 {
     13 	Anope::string file_name;
     14  public:
     15 	StaticFileServer(const Anope::string &f_n, const Anope::string &u, const Anope::string &c_t);
     16 
     17 	bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) anope_override;
     18 };