mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
8 lines
263 B
Rust
8 lines
263 B
Rust
use reqwest::header::USER_AGENT;
|
|
|
|
pub(crate) async fn query(site: &str) -> String {
|
|
let client = reqwest::Client::new();
|
|
|
|
let response = client.get(site).header(USER_AGENT, "cultivation").send().await.unwrap();
|
|
return response.text().await.unwrap();
|
|
} |