2014-01-17 23:47:14 +01:00
|
|
|
#pragma once
|
2014-01-26 13:02:12 +01:00
|
|
|
|
2014-01-17 23:47:14 +01:00
|
|
|
#include <mongoose.h>
|
|
|
|
|
2014-01-26 13:02:12 +01:00
|
|
|
#include <string>
|
|
|
|
|
2014-01-17 23:47:14 +01:00
|
|
|
class StaticFileHandler
|
|
|
|
{
|
2014-01-26 13:02:12 +01:00
|
|
|
public:
|
|
|
|
int answer_pathreq(const char * const path, struct mg_connection *conn);
|
|
|
|
std::string cleanpath(const char * const);
|
|
|
|
StaticFileHandler() {};
|
|
|
|
~StaticFileHandler() {};
|
2014-01-17 23:47:14 +01:00
|
|
|
|
2014-01-26 13:02:12 +01:00
|
|
|
private:
|
|
|
|
std::string _cleanpath (const char * const path);
|
|
|
|
|
|
|
|
|
|
|
|
};
|