Skip to main content

client

Function client 

Source
pub fn client() -> Client
Expand description

The default outbound client: builder, built.

Falls back to a default-configured [reqwest::Client] if construction fails. Every caller of this function is on a path – a boot sequence, a poll loop – where refusing to start at all is worse than running that one process lifetime with reqwest’s own defaults instead of these.

The fallback says so at warn. Running a process lifetime on reqwest’s defaults is the deliberate choice; doing it silently is what makes the resulting hang – a request with no deadline against a black-holed route – something nothing in the log explains.