Skip to main content

create_client

Function create_client 

Source
pub fn create_client(config: &Config) -> Result<Client, SpeedtestError>
Expand description

Create an HTTP client with the given configuration.

ยงErrors

Returns SpeedtestError::Context if the source IP is invalid. Returns SpeedtestError::NetworkError if the client fails to build.