Skip to main content

Module connect

Module connect 

Source
Expand description

The host every client command talks to, resolved once per run.

Two things used to be the caller’s job on every single invocation: saying where the host is, and carrying its token there. Both are now defaults with an override. When --endpoint-url (or AFHTTP_ENDPOINT_URL) is absent, the standard local afhttp-host container is discovered and its own token read from it, so the ordinary local case is just the command. When an endpoint is named, nothing is discovered — a caller who says where to go decides how to authenticate too, by naming a source for the token.

Discovery is read-only. It never starts, recreates, or reconfigures a container; afhttp container install remains the only thing that does.

Structs§

Connection
A host named on argv, or the local one to go find.
Resolved
The same connection with every source read.