Files
koxinga/src/http.rs
2025-03-05 09:31:42 +00:00

11 lines
187 B
Rust

use reqwest::blocking;
pub fn get(url: &str) -> Option<String> {
if let Ok(resp) = blocking::get(url) {
if let Ok(text) = resp.text() {
return Some(text);
}
}
None
}