move rendering of headers to the Headers object

This commit is contained in:
Sean McArthur
2014-10-08 10:23:34 -07:00
parent f2d2ed93d3
commit 2f755a5694
5 changed files with 44 additions and 17 deletions

View File

@@ -32,8 +32,8 @@ fn main() {
};
let mut res = req
.start().ok().expect("Error writing Headers.")
.send().ok().expect("Error sending Request.");
.start().unwrap()
.send().unwrap();
println!("Response: {}", res.status);
println!("{}", res.headers);