Skip to main content

Module client

Module client 

Source
Expand description

The transport: one client, and the rules every call goes through.

Everything above this module builds a path and reads a body. What lives here is the part that is the same for all 93 tailnet tools — which credential goes on the wire, when a failed call is worth repeating, how many may be in flight at once, and how large an answer this server will hold.

Structs§

Answer
A parsed answer, and the body it was parsed from.
Client
A client for the control plane.
ClientConfig
How to reach the control plane.
RequestBuilder
One call, before it is sent.
TextBody
A body that was asked for as text, and the version it was read at.

Constants§

DEFAULT_BASE_URL
The control plane. Pinned rather than configured, because a server that can be pointed at another host is a server that can be pointed at an attacker’s.
DEFAULT_BUDGET
How long one call may take, across every attempt it makes.
DEFAULT_CONCURRENCY
How many calls may be in flight at once.

Functions§

checked_base_url
Where a client may point.