Skip to main content

Module get_http_endpoint_dispatch

Module get_http_endpoint_dispatch 

Source
Expand description

GetBrokerHttpEndpoint RPC dispatch (slice 6 of #488).

The CLI calls GetBrokerHttpEndpoint over the v2 broker control channel to discover the broker’s HTTP endpoint (per #483 §4 — the single discovery surface). This module implements the broker side of that RPC: given the broker’s currently-resolved HTTP port + its own pid, build a GetBrokerHttpEndpointResponse and serialize it.

The real plumbing (read incoming frame → dispatch on payload type → write response frame) lives in the broker’s connection loop, which is filled in by later slices. This slice exposes the typed request/response handler so subsequent slices have a pinned API to call.

Structs§

BrokerHttpEndpoint
In-broker resolved HTTP endpoint state (set at boot per #483 §3 via BrokerHttpPort::resolve(config, env)).

Enums§

GetHttpEndpointError
Errors from decode_request_and_dispatch.

Functions§

decode_request_and_dispatch
Decode an incoming GetBrokerHttpEndpointRequest frame body and produce a serialized GetBrokerHttpEndpointResponse body the connection loop can write back via protocol::write_frame.