Expand description
Thin wrapper around bee::Client that binds it to a configured
NodeConfig. The cockpit talks to Bee through one ApiClient
per active profile.
Construction:
ⓘ
use crate::api::ApiClient;
let client = ApiClient::from_node(&node_config)?;
let rtt = client.bee().ping().await?;Multi-node UX (v0.4) will hold a HashMap<String, ApiClient>
keyed by node name; the screen-level :context command swaps the
active key.
Structs§
- ApiClient
- Active connection to one Bee node. Cheap to clone (
bee::ClientisArc<Inner>under the hood).
Constants§
- BEE_
TUI_ USER_ AGENT - User-Agent header bee-tui sends on every Bee API call. Enables
the Bee HTTP log-pane tab to filter bee-tui’s own traffic out
of the “everything Bee served” view, leaving only third-party
clients (curl / swarm-cli / browser) visible. Format follows
the convention
<product>/<version>per RFC 7231 § 5.5.3.