You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
710 B
42 lines
710 B
/* |
|
* httpdocrootsettings.h |
|
* |
|
* Created on: Nov 13, 2017 |
|
* Author: f4exb |
|
*/ |
|
|
|
#ifndef HTTPSERVER_HTTPDOCROOTSETTINGS_H_ |
|
#define HTTPSERVER_HTTPDOCROOTSETTINGS_H_ |
|
|
|
#include <QString> |
|
|
|
namespace qtwebapp { |
|
|
|
class HttpDocrootSettings |
|
{ |
|
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_ */
|
|
|