28 FileHandler(
const char * route,
const char * filePath,
const char * mimeType,
bool isBinary);
45 static bool loadFile(
const char * filePath, std::string & data);
this class allow you to set any file of filesystem as response body
Definition: file_handler.h:10
FileHandler(const char *route, const char *filePath, const char *mimeType, bool isBinary)
static bool loadFile(const char *filePath, std::string &data)
object of this class executes every time on new request, this object (and others) construct response ...
Definition: handler.h:13