![]() |
Qore xml Module 2.1.0
|
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 | |
XML-RPC Handler implementation; to be registered as a request handler in the HttpServer class.
| void XmlRpcHandler::XmlRpcHandler::addMethod | ( | auto | cmark, |
| int | logopt, | ||
| string | help, | ||
| string | text, | ||
| string | name, | ||
| code | func | ||
| ) |
adds a method to the handler dynamically
| name | a regular expression to use for matching the method name |
| func | a 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 |
| text | the human-readable name of the method |
| help | help text for the method |
| logopt | log options which can be used by a custom logger (see the getLogMessage parameter) |
| cmark | any value that will be added in the method hash under the "cmark" key |