2017-11-13 00:01:15 +00:00
|
|
|
/*
|
|
|
|
* httpdocrootsettings.h
|
|
|
|
*
|
|
|
|
* Created on: Nov 13, 2017
|
|
|
|
* Author: f4exb
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HTTPSERVER_HTTPDOCROOTSETTINGS_H_
|
|
|
|
#define HTTPSERVER_HTTPDOCROOTSETTINGS_H_
|
|
|
|
|
2017-11-20 17:38:26 +00:00
|
|
|
#include <QString>
|
|
|
|
|
2017-11-13 00:01:15 +00:00
|
|
|
namespace qtwebapp {
|
|
|
|
|
|
|
|
struct HttpDocrootSettings
|
|
|
|
{
|
|
|
|
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_ */
|