HttpReply
Object Hierarchy:
Description:
public class HttpReply :
Connection
Server-side write target for one HTTP POST.
Subclasses Connection so
OLLMrpc.Request.reply can call
write. The RPC payload is still an
OLLMrpc.Response (or Notification
); this type only holds the Soup.ServerMessage and encodes JSON or bin into it. First
Notification opens NDJSON streaming; a final
Response finishes the stream. Shared JIT tables come from
session.
Example
var session = OLLMrpc.Transport.Session.take("");
var reply = new OLLMrpc.Transport.HttpReply(soup, msg, session);
request.connection = reply;
request.dispatch();
Content:
Properties:
- public bool bin_body { get; set; }
True when the POST used application/octet-stream (bin reply).
- public string cert_fingerprint { get; set; }
SHA-256 hex of the TLS peer cert DER. Empty when no client cert.
- public string client_ip { get; set; }
Client address for pending registration (PROXY-sourced when
filesd.proxy, else TCP peer). Empty when unknown.
- public ServerMessage msg { get; construct; }
Soup message for this POST (request body already read; response filled
by write).
- public Session session { get; construct; }
Shared HTTP session (bin name tables + id). Not used for leases.
- public Server soup { get; construct; }
Owning Soup server (unpause when a streamed
Response finishes).
Creation methods:
Methods:
- public override void start ()
- public override void write (Object gobject, Buffer? buffer = null)
Fields:
Inherited Members:
All known members inherited from class OLLMrpc.Transport.Connection
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref