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); -}