You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dependencies]
reqwest = { version = "0.10.8", default-features = false, features = ["rustls-tls", "stream", "gzip", "brotli"] }
tokio = { version = "0.2", features = ["full"] }
main.rs
#[tokio::main]asyncfnmain() -> Result<(),Box<dyn std::error::Error>>{let res = reqwest::Client::builder().danger_accept_invalid_certs(true).build().unwrap().get("https://api.kavenegar.com/v1").send().await?;println!("res: is {}", res.status());Ok(())}
url: https://api.kavenegar.com/v1
Cargo.toml
main.rs
log result:
I don't have any problem when I use
openssl
ornative-tls
What's wrong?
The text was updated successfully, but these errors were encountered: