```rust
async fn main(){ if let Ok(res) = get("https://www.spacex.com").await{ asserteq!(200,res.status); asserteq!(r#"{"content-type": "text/html; charset=utf-8", "vary": "Accept-Encoding", "date": "Sun, 09 Oct 2022 18:49:44 GMT", "connection": "keep-alive", "keep-alive": "timeout=5", "transfer-encoding": "chunked"}"#,format!("{:?}",res.headers)); println!("{}",res.text); println!("{}",res.textwithcharset); println!("{}",res.url); println!("{}",res.remote_addr); println!("{:?}",res.version); }
}
```
```rust fn main(){ use tomcat::*; if let Ok(res) = getblocking("https://www.spacex.com"){ asserteq!(200,res.status); asserteq!(r#"{"content-type": "text/html; charset=utf-8", "vary": "Accept-Encoding", "date": "Sun, 09 Oct 2022 18:49:44 GMT", "connection": "keep-alive", "keep-alive": "timeout=5", "transfer-encoding": "chunked"}"#,format!("{:?}",res.headers)); println!("{}",res.text); println!("{}",res.textwithcharset); println!("{}",res.url); println!("{}",res.remoteaddr); println!("{:?}",res.version); } }
```