request/examples/get.rs

10 lines
230 B
Rust
Raw Normal View History

2024-03-01 12:23:09 +00:00
use request::Request;
fn main() {
let response = Request::get("http://httpforever.com/").send().unwrap();
dbg!(&response);
let response = Request::get("http://archlinux.org/").send().unwrap();
dbg!(&response);
}