Skip to main content

get_global_http_client

Function get_global_http_client 

Source
pub fn get_global_http_client() -> Result<Arc<ClientWithMiddleware>>
Expand description

Get the global HTTP client singleton

ยงErrors

Returns an error if the global HTTP client has not been initialized. Call init_global_http_client() before using this function.

If you need automatic initialization, use get_or_init_global_http_client() instead.