6 #ifndef STATICFILECONTROLLER_H 7 #define STATICFILECONTROLLER_H 80 QString getDocRoot()
const {
return docroot; }
83 static QByteArray getContentType(QString fileName, QString
encoding);
108 QCache<QString,CacheEntry> cache;
114 void setContentType(QString file,
HttpResponse& response)
const;
117 #endif // STATICFILECONTROLLER_H int maxCachedFileSize
Maximum size of a single file in the serverside cache.
The request handler generates a response for each HTTP request.
QString path
The path to the document root.
Contains all the settings for the StaticFileController.
int cacheSize
Total serverside cache size in bytes.
int maxAge
Maximum age of files in the browser cache (HTTP Cache-Control: max-age), in seconds.
QString encoding
The assumed encoding of textual files (txt, html).
This object represents a single HTTP request.
int cacheTime
Maximum age of files in the serverside cache (in msec).
This object represents a HTTP response, used to return something to the web client.