Misc renames (#202)
This patch renames a number of types and functions making the API more consistent. * `Server` -> `Connection` * `Client` -> `SendRequest` * `Respond` -> `SendResponse`. It also moves the handshake fns off of `Connection` and make them free fns in the module. And `Connection::builder` is removed in favor of `Builder::new`.
This commit is contained in:
@@ -23,7 +23,7 @@ fn recv_trailers_only() {
|
||||
])
|
||||
.build();
|
||||
|
||||
let (mut client, mut h2) = Client::handshake(mock).wait().unwrap();
|
||||
let (mut client, mut h2) = client::handshake(mock).wait().unwrap();
|
||||
|
||||
// Send the request
|
||||
let request = Request::builder()
|
||||
@@ -71,7 +71,7 @@ fn send_trailers_immediately() {
|
||||
])
|
||||
.build();
|
||||
|
||||
let (mut client, mut h2) = Client::handshake(mock).wait().unwrap();
|
||||
let (mut client, mut h2) = client::handshake(mock).wait().unwrap();
|
||||
|
||||
// Send the request
|
||||
let request = Request::builder()
|
||||
|
||||
Reference in New Issue
Block a user