HttpClient


Object Hierarchy:

Object hierarchy for HttpClient

Description:

public class HttpClient : Object

HTTP RPC client — POST JSON or bin + session headers.

Peer to HttpServer. Not OLLMrpc.Client (that type owns socket/TCP and Hub GET). One instance keeps X-rpc-session / X-rpc-sequence across calls. Set bin_body for octet-stream (JIT name tables on bin); leave false for JSON.

Example

var http = new OLLMrpc.Transport.HttpClient("https://127.0.0.1:8080") {
tls_database = GLib.TlsFileDatabase.@new(ca_pem_path)
};
var resp = yield http.call(new OLLMrpc.Request() {
method = "Hello.world"
});


Namespace: OLLMrpc.Transport
Package: ollmchat

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object