Skip to content

Commit

Permalink
edit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Avery committed Aug 13, 2024
1 parent d080fd8 commit 22c341e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test-rustls-platform-verifier/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.use_preconfigured_tls(rustls_platform_verifier::tls_config())
.build()
.expect("Build should not fail");
let request = client.get("https://httpbin.org/ip").build()?;
let response = client.execute(request).await?;

let resp = client
.get("https://httpbin.org/ip")
.send()
.await?
.text()
.await?;
let status_code = response.status();
let content = response.text().await?;

println!("body = {resp:?}");
println!("status_code = {status_code:?}");
println!("content = {content:?}");

Ok(())
}

0 comments on commit 22c341e

Please sign in to comment.