Skip to main content

shared_client

Function shared_client 

Source
pub fn shared_client() -> &'static Client
Expand description

Return a handle to the process-wide shared reqwest::Client.

Client is cheap to clone — it wraps an Arc internally — so callers should .clone() the returned reference into their own state.