pub fn get<T: DeserializeOwned>(url: &str) -> Result<T, Error>Expand description
Read a resource.
let lead: Value = simple::http::get("https://api.example.com/leads/L1")?;
assert_eq!(lead["id"], json!("L1"));pub fn get<T: DeserializeOwned>(url: &str) -> Result<T, Error>Read a resource.
let lead: Value = simple::http::get("https://api.example.com/leads/L1")?;
assert_eq!(lead["id"], json!("L1"));