Skip to main content

transport

Function transport 

Source
pub fn transport() -> Arc<dyn HttpClient> ⓘ
Expand description

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.

§Panics

Panics when that transport cannot be built, for example SCOPE_HTTP_MODE=replay with no SCOPE_HTTP_FIXTURES. A replay run must not go to the network in its place.