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:
		| @@ -5,7 +5,7 @@ extern crate h2; | ||||
| extern crate http; | ||||
| extern crate tokio_core; | ||||
|  | ||||
| use h2::server::Server; | ||||
| use h2::server; | ||||
|  | ||||
| use bytes::*; | ||||
| use futures::*; | ||||
| @@ -28,7 +28,7 @@ pub fn main() { | ||||
|         // let socket = io_dump::Dump::to_stdout(socket); | ||||
|  | ||||
|  | ||||
|         let connection = Server::handshake(socket) | ||||
|         let connection = server::handshake(socket) | ||||
|             .and_then(|conn| { | ||||
|                 println!("H2 connection bound"); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user