fn main() -> Result<(), Box> { #[cfg(feature = "tls")] { use openssl::x509::X509; use slinger::ClientBuilder; let client = ClientBuilder::new().build().unwrap(); let resp = client.get("https://httpbin.org/get").send()?; let certificate = resp.extensions().get::().unwrap(); println!("{:?}", certificate); } Ok(()) }