Skip to main content

client

Function client 

Source
pub fn client(timeouts: ClientTimeouts) -> Client
Expand description

A client with the shared floor applied, built.

.expect, not a fallback to Client::new(): build() fails only on TLS backend initialization, and falling back would silently hand back exactly the timeout-less client this exists to replace. It also matches what the script host’s shared client already does, and a fallback closure that never runs is a permanently uncovered region.