Skip to main content

get_http_client

Function get_http_client 

Source
pub fn get_http_client() -> Result<&'static Client, Error>
Expand description

Creates an HTTP client with Zoi’s default configuration.

§Errors

Returns an error if Zoi is in offline mode or if the HTTP client cannot be built.