Request


Object Hierarchy:

Object hierarchy for Request

Description:

public class Request : Object, Serializable

Outbound RPC envelope (one root object per call).

Set method to the wire handler name (RPC-Object.method for daemons; hyphen nested namespaces like RPC-Live-Remote.ref ; or a REST path for HTTP). Attach a CallParam subclass on param, or positional GLib.Values on values (omit when empty). For typed HTTP results, set result_type before Client.call.

Example

var req = new OLLMrpc.Request() {
method = "RPC-Folder.fetch_files",
param = new OLLMfilesd.FolderParams() {
path = "/home/user/project"
},
result_type = typeof(OLLMfilesd.FileArray)
};
var resp = yield rpc.call(req);
if (resp.error != null) {
GLib.error("%s", resp.error.message);
}

See also:

Client, CallParam, Response


Namespace: OLLMrpc
Package: ollmchat

Content:

Properties:

Static methods:

Creation methods:

Methods:

Fields:

Inherited Members:

All known members inherited from class GLib.Object