Zomg something works

This commit is contained in:
Carl Lerche
2017-08-04 17:29:37 -07:00
parent 1c55ad75ea
commit 650b40fc90

View File

@@ -34,8 +34,13 @@ fn send_recv_headers_only() {
info!("sending request");
let stream = h2.request(request, true).unwrap();
let resp = stream.select2(h2).wait().ok().unwrap();
println!("GOT: {:?}", resp);
// Wait
h2.wait().ok().unwrap();
// Try to get response
println!("GOT: {:?}", stream.wait().ok().unwrap());
// let resp = stream.select2(h2).wait().ok().unwrap();
/*
// Get the response