moved get binary to examples
This commit is contained in:
parent
ca1f77456c
commit
5dffb202a5
2 changed files with 9 additions and 6 deletions
9
examples/get.rs
Normal file
9
examples/get.rs
Normal 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);
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
fn main() {
|
||||
let response = request::Request::get("http://httpforever.com/")
|
||||
.send()
|
||||
.unwrap();
|
||||
dbg!(&response);
|
||||
}
|
Loading…
Reference in a new issue