moved get binary to examples

This commit is contained in:
Frederik Palmø 2024-03-01 13:23:09 +01:00
parent ca1f77456c
commit 5dffb202a5
2 changed files with 9 additions and 6 deletions

9
examples/get.rs Normal file
View file

@ -0,0 +1,9 @@
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);
}

View file

@ -1,6 +0,0 @@
fn main() {
let response = request::Request::get("http://httpforever.com/")
.send()
.unwrap();
dbg!(&response);
}