 |
Qore YamlRpcHandler Module Reference
1.4
|
109 const Version =
"1.0";
112 const InternalMethods = (
115 "help" :
"shows a list of YAML-RPC methods registered with this handler",
120 "function":
"listMethods",
121 "help" :
"lists YAML-RPC method names registered with this handler",
122 "text" :
"system.listMethods",
126 "function":
"system_describe",
127 "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)",
128 "text" :
"system.describe",
169 constructor(HttpServer::AbstractAuthenticator v_auth, list v_methods, *code v_get_log_msg,
bool v_dbg = False, *
string v_get_prefix, *code v_log) ;
180 addMethod(
string name, code func,
string text,
string help,
auto logopt,
auto cmark);
200 final hash handleRequest(hash cx, hash hdr, *data body);
205 final addMethodInternal(hash h);
215 hash system_describe();
220 softlist<string> listMethods();
225 log(hash cx,
string str);
231 final hash callMethod(hash cx,
auto params);
static string makeErrorResponse(int code, string mess, auto err, int flags=YAML::None)
serializes an error reponse in YAML-RPC format given the arguments
static string makeResponse(auto response, int flags=YAML::None)
serializes a 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
setDebug(bool dbg=True)
turns on or off debugging; when debugging is enabled more verbose error messages are reported
the YamlRpcHandler namespace holds all public definitions in the YamlRpcHandler module
Definition: YamlRpcHandler.qm.dox.h:101
addMethod(string name, code func, string text, string help, auto logopt, auto cmark)
adds a method to the handler dynamically