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:
		| @@ -26,7 +26,7 @@ fn single_stream_send_large_body() { | ||||
|         .build(); | ||||
|  | ||||
|     let notify = MockNotify::new(); | ||||
|     let (mut client, mut h2) = Client::handshake(mock).wait().unwrap(); | ||||
|     let (mut client, mut h2) = client::handshake(mock).wait().unwrap(); | ||||
|  | ||||
|     // Poll h2 once to get notifications | ||||
|     loop { | ||||
| @@ -94,7 +94,7 @@ fn single_stream_send_extra_large_body_multi_frames_one_buffer() { | ||||
|         .build(); | ||||
|  | ||||
|     let notify = MockNotify::new(); | ||||
|     let (mut client, mut h2) = Client::handshake(mock).wait().unwrap(); | ||||
|     let (mut client, mut h2) = client::handshake(mock).wait().unwrap(); | ||||
|  | ||||
|     // Poll h2 once to get notifications | ||||
|     loop { | ||||
| @@ -181,7 +181,7 @@ fn single_stream_send_body_greater_than_default_window() { | ||||
|         .build(); | ||||
|  | ||||
|     let notify = MockNotify::new(); | ||||
|     let (mut client, mut h2) = Client::handshake(mock).wait().unwrap(); | ||||
|     let (mut client, mut h2) = client::handshake(mock).wait().unwrap(); | ||||
|  | ||||
|     // Poll h2 once to get notifications | ||||
|     loop { | ||||
| @@ -265,7 +265,7 @@ fn single_stream_send_extra_large_body_multi_frames_multi_buffer() { | ||||
|         .read(&[0, 0, 1, 1, 5, 0, 0, 0, 1, 0x89]) | ||||
|         .build(); | ||||
|  | ||||
|     let (mut client, mut h2) = Client::handshake(mock).wait().unwrap(); | ||||
|     let (mut client, mut h2) = client::handshake(mock).wait().unwrap(); | ||||
|  | ||||
|     let request = Request::builder() | ||||
|         .method(Method::POST) | ||||
| @@ -296,7 +296,7 @@ fn send_data_receive_window_update() { | ||||
|     let _ = ::env_logger::init(); | ||||
|     let (m, mock) = mock::new(); | ||||
|  | ||||
|     let h2 = Client::handshake(m) | ||||
|     let h2 = client::handshake(m) | ||||
|         .unwrap() | ||||
|         .and_then(|(mut client, h2)| { | ||||
|             let request = Request::builder() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user