Skip to main content

default_client

Function default_client 

Source
pub fn default_client() -> Client
Expand description

Builds a reqwest::Client with library defaults.

The client has a 300-second total timeout and a 60-second connect timeout. Pass your own client to any request method if you need a different configuration (proxy, timeout, pooling, …).

§Panics

Panics if the underlying TLS backend fails to initialize. This mirrors the panic behavior of reqwest::Client::new.