pub async fn get<T: DeserializeOwned>(
url: &str,
headers: &[(&str, &str)],
) -> Result<T, PublicError>Expand description
Perform a GET request and deserialize a JSON response. Returns an error on non-2xx status codes or JSON decode failures.