94 const Version =
"1.0";
97 const InternalMethods = (
99 "help" :
"shows a list of YAML-RPC methods registered with this handler",
103 (
"function":
"listMethods",
104 "help" :
"lists YAML-RPC method names registered with this handler",
105 "text" :
"system.listMethods",
108 (
"function":
"system_describe",
109 "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)",
110 "text" :
"system.describe",
125 __7_
string get_prefix;
128 __7_ code getLogMessage;
151 constructor(HttpServer::AbstractAuthenticator v_auth, list v_methods, __7_ code v_get_log_msg,
bool v_dbg = False, __7_
string v_get_prefix, __7_ code v_log);
162 addMethod(
string name, code func,
string text,
string help, any logopt, any cmark);
166 setDebug(
bool dbg = True);
174 static string makeResponse(any response,
int flags = YAML::None);
177 static string makeErrorResponse(
int code,
string mess, any err,
int flags = YAML::None);
182 final hash handleRequest(hash cx, hash hdr, __7_ data body);
186 final private addMethodInternal(hash h);
192 private hash system_describe();
195 private list listMethods();
198 private log(hash cx,
string str);
202 final private hash callMethod(hash cx, any params);
the YamlRpcHandler namespace holds all public definitions in the YamlRpcHandler module ...
Definition: YamlRpcHandler.qm.dox.h:86