Skip to main content

Module shared

Module shared 

Source
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 through env.
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 through env.
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_MODE applies even before init.
transport_with
Like transport, reading environment variables through env.