HttpServer


Object Hierarchy:

Object hierarchy for HttpServer

Description:

public class HttpServer : Listen

HTTP JSON RPC server (Soup.Server).

POST to rpc_path with auto-JSON OLLMrpc.Request body (method in the body). Exact paths from OLLMrpc.Http.routes dispatch by verb+path. Replies are auto-JSON OLLMrpc.Response. Same OLLMrpc.Request.dispatch path as socket RPC. Runs on the process main loop — no fork or thread pool inside the library.

Example

var http = new OLLMrpc.Transport.HttpServer(8080);
var cert = new OLLMrpc.Transport.Cert() {
dir = tls_dir,
ca_pem_path = ca_pem,
ca_key_path = ca_key,
server_san = true,
};
cert.ensure();
http.tls_certificate = cert.certificate;
http.start();


Namespace: OLLMrpc.Transport
Package: ollmchat

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class OLLMrpc.Transport.Listen
All known members inherited from class GLib.Object