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§
- Broker
Http Endpoint - In-broker resolved HTTP endpoint state (set at boot per #483 §3 via
BrokerHttpPort::resolve(config, env)).
Enums§
- GetHttp
Endpoint Error - Errors from
decode_request_and_dispatch.
Functions§
- decode_
request_ and_ dispatch - Decode an incoming
GetBrokerHttpEndpointRequestframe body and produce a serializedGetBrokerHttpEndpointResponsebody the connection loop can write back viaprotocol::write_frame.