REC RPC library
|
HTTP GET handler interface. More...
#include <rec_rpc_Server.h>
Public Member Functions | |
virtual void | invoke (const QUrl &url, const QString &host, QByteArray &resultPage, QString &contentType, const rec::rpc::ClientInfo &client)=0 |
HTTP GET handler interface.
The interface that a HTTP GET handler must implement. It is recommended to use the preprocessor macros to do this.
Definition at line 77 of file rec_rpc_Server.h.
|
pure virtual |
This method is called by the server to invoke the HTTP GET handler.
url | the URL containing the relative path and the queries as QUrl (example: /index.html?value1=something&value2=anything) |
host | the host name sent by the client. |
resultPage | HTML page that will be displayed in the browser. |
contentType | The content type which will be sent to the client in the HTTP header. If empty, no content type will be transmitted. |
client | Info about the calling client. |