staticfilecontroller.h   staticfilecontroller.h 
skipping to change at line 74 skipping to change at line 74
useless. Better create one instance during start-up and call it when the application useless. Better create one instance during start-up and call it when the application
received a related HTTP request. received a related HTTP request.
*/ */
class DECLSPEC StaticFileController : public HttpRequestHandler { class DECLSPEC StaticFileController : public HttpRequestHandler {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(StaticFileController) Q_DISABLE_COPY(StaticFileController)
public: public:
/** Constructor */ /** Constructor */
StaticFileController(const StaticFileControllerSettings& settings, QObj ect* parent = NULL); StaticFileController(const StaticFileControllerSettings& settings, QObj ect* parent = Q_NULLPTR);
/** Generates the response */ /** Generates the response */
void service(HttpRequest& request, HttpResponse& response); void service(HttpRequest& request, HttpResponse& response);
QString getDocRoot() const { return docroot; } QString getDocRoot() const { return docroot; }
/** Returns the content type of this file. This is currently only deter mined by file name. */ /** Returns the content type of this file. This is currently only deter mined by file name. */
static QByteArray getContentType(QString fileName, QString encoding); static QByteArray getContentType(QString fileName, QString encoding);
private: private:
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/