99 namespace YamlRpcHandler {
113 "help" :
"shows a list of YAML-RPC methods registered with this handler",
117 (
"function":
"listMethods",
118 "help" :
"lists YAML-RPC method names registered with this handler",
119 "text" :
"system.listMethods",
122 (
"function":
"system_describe",
123 "help" :
"returns a service description object, like the one specified by the JSON-RPC 1.1 spec (even though we use YAML instead of JSON)",
124 "text" :
"system.describe",
165 constructor(HttpServer::AbstractAuthenticator v_auth, list v_methods, *code v_get_log_msg,
bool v_dbg = False, *
string v_get_prefix, *code v_log) ;
176 addMethod(
string name, code func,
string text,
string help,
auto logopt,
auto cmark);
188 static string makeResponse(
auto response,
int flags = YAML::None);
191 static string makeErrorResponse(
int code,
string mess,
auto err,
int flags = YAML::None);
196 final hash handleRequest(hash cx, hash hdr, *data body);
202 final addMethodInternal(hash h);
214 hash system_describe();
226 log(hash cx,
string str);
233 final hash callMethod(hash cx,
auto params);
setDebug(bool dbg=True)
turns on or off debugging; when debugging is enabled more verbose error messages are reported ...
static string makeErrorResponse(int code, string mess, auto err, int flags=YAML::None)
serializes an error reponse in YAML-RPC format given the arguments
bool getDebug()
returns the current status of the debug flag
constructor(HttpServer::AbstractAuthenticator v_auth, list v_methods, *code v_get_log_msg, bool v_dbg=False, *string v_get_prefix, *code v_log)
creates the handler with the given method list
static string makeResponse(auto response, int flags=YAML::None)
serializes a reponse in YAML-RPC format given the arguments
addMethod(string name, code func, string text, string help, auto logopt, auto cmark)
adds a method to the handler dynamically
const InternalMethods
internal methods of the handler (introspection)
Definition: YamlRpcHandler.qm.dox.h:111
YamlRpcHandler class definition; to be registered as a handler in the HttpServer class.
Definition: YamlRpcHandler.qm.dox.h:104
const Version
implementation of the handler
Definition: YamlRpcHandler.qm.dox.h:108