Remove reqwest

It uses too many dependencies
This commit is contained in:
Ethan O'Brien
2025-11-20 23:38:24 -06:00
parent 6b34316bad
commit 3343d4fdd6
4 changed files with 52 additions and 525 deletions

View File

@@ -331,10 +331,12 @@ async fn npps4_req(sha_id: String) -> Option<JsonValue> {
let url = format!("{}/ewexport?sha1={}", host, sha_id);
println!("Polling NPPS4 at {}", host);
let client = reqwest::Client::new();
let response = client.get(url);
let response_body = response.send().await.ok()?.text().await.ok()?;
json::parse(&response_body).ok()
let body = ureq::get(&url)
.call().ok()?
.body_mut()
.read_to_string().ok()?;
json::parse(&body).ok()
}
fn clean_sif_data(current: &JsonValue) -> JsonValue {