sdrangel/httpserver/httpdocrootsettings.h

43 wiersze
710 B
C
Czysty Zwykły widok Historia

/*
* httpdocrootsettings.h
*
* Created on: Nov 13, 2017
* Author: f4exb
*/
#ifndef HTTPSERVER_HTTPDOCROOTSETTINGS_H_
#define HTTPSERVER_HTTPDOCROOTSETTINGS_H_
#include <QString>
namespace qtwebapp {
2018-03-01 08:14:37 +00:00
class HttpDocrootSettings
{
2018-03-01 08:14:37 +00:00
public:
QString path;
QString encoding;
int maxAge;
int cacheTime;
int cacheSize;
int maxCachedFileSize;
HttpDocrootSettings() {
resetToDefaults();
}
void resetToDefaults()
{
path = ".";
encoding = "UTF-8";
maxAge = 60000;
cacheTime = 60000;
cacheSize = 1000000;
maxCachedFileSize = 65536;
}
};
} // end of namespace
#endif /* HTTPSERVER_HTTPDOCROOTSETTINGS_H_ */