extern crate reqwest;
use std::collections::HashMap;
pub fn test_reqwest() -> Result<(), Box<std::error::Error>> {
let resp: HashMap<String, String> = reqwest::get("https://httpbin.org/ip")?
.json()?;
println!("{:#?}", resp);
Ok(())
}
pub fn another_query() -> Result<(), Box<std::error::Error>> {
let body = reqwest::get("https://jaredforthmusic.com")?
.text()?;
println!("The body: {}", body);
Ok(())
}