23 #ifndef TUFAO_HTTPFILESERVER_H
24 #define TUFAO_HTTPFILESERVER_H
26 #include "abstracthttpserverrequesthandler.h"
28 #include "httpserverresponse.h"
85 void setDir(
const QString &dir);
125 static qint64 bufferSize();
130 static void setBufferSize(qint64 size);
147 const QString &root);
159 static std::function<bool(HttpServerRequest&, HttpServerResponse&)>
160 handler(
const QString &rootDir);
180 const QString &rootDir);
188 #endif // TUFAO_HTTPFILESERVER_H
This class provides an interface for HttpServerRequest handlers.
Definition: abstracthttpserverrequesthandler.h:50
The Tufao::HttpServerResponse is used to respond to a Tufao::HttpServerRequest.
Definition: httpserverresponse.h:142
The Tufao::HttpServer represents a HTTP request received by Tufao::HttpServer.
Definition: httpserverrequest.h:54
You can use this class to serve static files under Tufão.
Definition: httpfileserver.h:60
HttpResponseStatus
The values in this enum represents a HTTP status code.
Definition: httpserverresponse.h:47
This is the namespace where all Tufão facilities are grouped.
Definition: abstracthttpserverrequesthandler.h:30