pub fn request(url: &str, cache: bool) -> Result<String>
Perform a GET request and optionally cache the response.
Returns an error if the URL is invalid, the request fails, or the response cannot be read.