add client::Builder to configure Clients

This commit is contained in:
Sean McArthur
2017-09-11 14:25:32 -07:00
parent d0afe30ab3
commit ed472f109c
5 changed files with 86 additions and 50 deletions

View File

@@ -62,7 +62,10 @@ fn send_recv_data() {
])
.build();
let mut h2 = Client::handshake2(mock).wait().unwrap();
let mut h2 = Client::builder()
.handshake(mock)
.wait()
.unwrap();
let request = Request::builder()
.method(Method::POST)