change Builders to only error at the end

Closes #189
This commit is contained in:
Sean McArthur
2017-08-31 11:45:24 -07:00
parent a02b388b2b
commit 779f8080ef
16 changed files with 390 additions and 313 deletions

View File

@@ -61,10 +61,9 @@ fn test_gzip(response_size: usize, chunk_size: usize) {
let mut core = Core::new().unwrap();
let client = Client::new(&core.handle()).unwrap();
let client = Client::new(&core.handle());
let res_future = client.get(&format!("http://{}/gzip", server.addr()))
.unwrap()
.send()
.and_then(|mut res| {
let body = mem::replace(res.body_mut(), Decoder::empty());