20 #ifndef REQUESTHANDLER_HPP_ 21 #define REQUESTHANDLER_HPP_ 45 void update(
double deltaTime);
73 void refreshTemplates();
77 QMap<QByteArray,QString> templateMap;
81 QByteArray passwordReply;
86 static const QByteArray AUTH_REALM;
The request handler generates a response for each HTTP request.
Contains all the settings for the StaticFileController.
RequestHandler(const StaticFileControllerSettings &settings, QObject *parent=0)
Constructs the request handler.
void setPassword(const QString &pw)
This is the main request handler for the remote control plugin, receiving and dispatching the HTTP re...
void setUsePassword(bool v)
Sets wether a password set with setPassword() is required by all requests.
virtual ~RequestHandler()
The internal APIController, and all registered services are deleted.
This object represents a single HTTP request.
bool getUsePassword()
Returns if a password is required to access the remote control.
virtual void service(HttpRequest &request, HttpResponse &response)
Receives the HttpRequest from the HttpListener.
This class handles the API-specific requests and dispatches them to the correct AbstractAPISerice imp...
void update(double deltaTime)
Called in the main thread each frame, only passed on to APIController::update.
This object represents a HTTP response, used to return something to the web client.