From 5dffb202a5a558213413dc626ffe11989741d2ef Mon Sep 17 00:00:00 2001 From: vodofrede Date: Fri, 1 Mar 2024 13:23:09 +0100 Subject: [PATCH] moved get binary to examples --- examples/get.rs | 9 +++++++++ src/bin/get.rs | 6 ------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 examples/get.rs delete mode 100644 src/bin/get.rs diff --git a/examples/get.rs b/examples/get.rs new file mode 100644 index 0000000..0784747 --- /dev/null +++ b/examples/get.rs @@ -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); +} diff --git a/src/bin/get.rs b/src/bin/get.rs deleted file mode 100644 index dedccc1..0000000 --- a/src/bin/get.rs +++ /dev/null @@ -1,6 +0,0 @@ -fn main() { - let response = request::Request::get("http://httpforever.com/") - .send() - .unwrap(); - dbg!(&response); -}