REC RPC library
Public Member Functions | List of all members
rec::rpc::HTTPGetHandlerBase Struct Referenceabstract

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
 

Detailed Description

HTTP GET handler interface.

The interface that a HTTP GET handler must implement. It is recommended to use the preprocessor macros to do this.

See also
DECLARE_HTTP_GET_HANDLER, BEGIN_HTTP_GET_HANDLER_DEFINITION, END_HTTP_GET_HANDLER_DEFINITION

Definition at line 77 of file rec_rpc_Server.h.

Member Function Documentation

virtual void rec::rpc::HTTPGetHandlerBase::invoke ( const QUrl &  url,
const QString &  host,
QByteArray &  resultPage,
QString &  contentType,
const rec::rpc::ClientInfo client 
)
pure virtual

This method is called by the server to invoke the HTTP GET handler.

Parameters
urlthe URL containing the relative path and the queries as QUrl (example: /index.html?value1=something&value2=anything)
hostthe host name sent by the client.
resultPageHTML page that will be displayed in the browser.
contentTypeThe content type which will be sent to the client in the HTTP header. If empty, no content type will be transmitted.
clientInfo about the calling client.

The documentation for this struct was generated from the following file: