use chromimic as reqwest; use reqwest::impersonate::Impersonate; use std::error::Error; #[tokio::main] async fn main() -> Result<(), Box> { // Build a client to chromimic Chrome120 let client = reqwest::Client::builder() .impersonate(Impersonate::Chrome126) .enable_ech_grease() .permute_extensions() .cookie_store(true) .build()?; // Use the API you're already familiar with let resp = client.get("https://tls.peet.ws/api/all").send().await?; println!("{}", resp.text().await?); Ok(()) }