Skip to main content

Module http_fleet

Module http_fleet 

Source
Expand description

GET /agentmux/fleet and GET /agentmux/fleet/events: this instance’s agent names for a LAN peer holding the lan_key, as a snapshot and as a Server-Sent Events stream (backend::fleet_feed, docs/specs/SPEC_LAN_FLEET_FEED_2026_10_03.md). Names plus instance metadata a LAN peer already sees in the mDNS record; nothing else about an agent.

Functions§

handle_fleet 🔒
The current snapshot, 304 Not Modified (no body) when the client’s If-None-Match already names it.
handle_fleet_events 🔒
The event stream: retry, the snapshot unless Last-Event-ID is already current, then one fleet event per change and a heartbeat comment every 15 s. 503 once fleet_feed::MAX_STREAMS streams are open.
if_none_match_matches 🔒
Does If-None-Match name etag? Accepts a list, weak validators, *, and a tag a client sent without its quotes.