request

Function request 

Source
pub fn request(url: &str, cache: bool) -> Result<String>
Expand description

Perform a GET request and optionally cache the response.

ยงErrors

Returns an error if the URL is invalid, the request fails, or the response cannot be read.