Qore xml Module 2.1.0
Loading...
Searching...
No Matches
XmlRpcHandler::XmlRpcHandler Class Reference

XML-RPC Handler implementation; to be registered as a request handler in the HttpServer class. More...

#include <XmlRpcHandler.qm.dox.h>

Inherits AbstractHttpRequestHandler.

Public Member Methods

void addMethod (auto cmark, int logopt, string help, string text, string name, code func)
 adds a method to the handler dynamically
 
void setDebug (bool dbg)
 turns on or off debugging; when debugging is enabled more verbose error messages are reported
 
bool getDebug ()
 returns the current status of the debug flag
 

Public Attributes

const auto Version = ...
 version of the implementation
 
const auto InternalMethods = ...
 internal methods (for introspection)
 
const auto XMLRPC_INVALID_XML = ...
 error code for invalid XML-RPC
 

Detailed Description

XML-RPC Handler implementation; to be registered as a request handler in the HttpServer class.

Member Function Documentation

◆ addMethod()

void XmlRpcHandler::XmlRpcHandler::addMethod ( auto  cmark,
int  logopt,
string  help,
string  text,
string  name,
code  func 
)

adds a method to the handler dynamically

Parameters
namea regular expression to use for matching the method name
funca string (giving a function name to call), a call reference, or a closure to call with the deserialized arguments to the method; the return value will be serialized to XML-RPC and sent back to the caller
textthe human-readable name of the method
helphelp text for the method
logoptlog options which can be used by a custom logger (see the getLogMessage parameter)
cmarkany value that will be added in the method hash under the "cmark" key

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