Node Http
REST + SSE-friendly client for a Krill server.
Parameters
Pre-configured Ktor client. The caller is responsible for installing engines, content-negotiation, plugins, and trust setup.
Trust-store callback used to evict and re-fetch a peer cert when an outbound call fails with an SSL error.
Supplies the current bearer token (PIN-derived per krill.zone.shared.security.PinDerivation.deriveBearerToken) on each request. null skips the Authorization header entirely, which is what unauthenticated FTUE traffic should do.
Constructors
Functions
Deletes a backup archive file.
Fetches a JPEG snapshot from a camera node.
Fetches a saved camera thumbnail as bytes via the trusted httpClient.
Lists saved camera snapshot filenames (newest first).
Returns the URL for a saved camera thumbnail.
Fetches available GPIO pin headers from a server.
Deliberate invocation. POSTs an InvokeRequest body to ${baseUrl(host)}/node/${target.id}/invoke — the explicit replacement for the legacy state-stamp click pattern (clients posting a node with state = NodeState.EXECUTED). Under Phase 4 the server's update() does not wake a processor; this endpoint is how clicks (and any other app-side deliberate fire) reach a node's processor.
Initiates a restore from a backup archive.