This class provides the REST API interface to the WebServers. More...
Header: | #include <RestServer> |
Inherits: |
RestServer(const QSslConfiguration & sslConfiguration = QSslConfiguration(), QObject * parent = 0) | |
void | registerWebserver(WebServer * webServer) |
This class provides the REST API interface to the WebServers.
The RestServer class provides the server interface for a REST API call. The RestServer will create a WebServer object. The WebServer will parse the HttpRequest and emits the signal WebServer::httpRequestReady(). This signal will be handled by this RestServer and processed by the corresponding RestResource. Once the HttpRequest is finished, the RestServer will send a HttpReply back to the client using WebServer::sendHttpReply().
See also ServerManager, WebServer, HttpRequest, and HttpReply.
Constructs a RestServer with the given sslConfiguration and parent.
Register the given webServer in this RestServer.
See also WebServer.