Expand description
§Shared HTTP transport
The one place that selects the HTTP transport. init builds it from
config and installs it for the process. Clients that do not get a
transport passed in call transport(). See the TUI test harness
design, section 2.2.
Structs§
- Built
- A built transport and the notices the caller must show the user.
Enums§
- Kind
- Which transport was built.
Functions§
- build
- Builds the transport the config and environment select.
- build_
with - Builds the transport, reading environment variables through
env. - configured_
kind - The kind the config and environment select, derived without building a client.
- configured_
kind_ with - Like
configured_kind, reading environment variables throughenv. - describe
- The installed transport kind, or
"none". - init
- Builds and installs the transport the first time; later calls return the installed transport with no notices.
- init_
with - Like
init, reading environment variables throughenv. - secret_
values - Values that must never be written to a fixture.
- transport
- The installed transport. If nothing is installed, installs the
transport that the default config and the environment select, so
SCOPE_HTTP_MODEapplies even beforeinit. - transport_
with - Like
transport, reading environment variables throughenv.