tower-hyper

Crates.iotower-hyper
lib.rstower-hyper
version0.1.1
sourcesrc
created_at2019-05-30 18:59:56.766335
updated_at2019-08-08 21:00:53.131625
descriptionA hyper based tower transport layer.
homepagehttps://github.com/tower-rs/tower-hyper
repositoryhttps://github.com/tower-rs/tower-hyper
max_upload_size
id137945
size39,478
Publish Ecosystem (github:tower-rs:publish-ecosystem)

documentation

https://docs.rs/tower-hyper/0.1.1/tower_hyper

README

tower-hyper

A hyper based tower transport layer.

Build Status

Example

Simple client connection example, check it out here

let connector = Connector::new(HttpConnector::new(1));
let mut hyper = Connect::new(connector, Builder::new());

let request = hyper
	.make_service(dst)
	.and_then(|mut conn| {
		conn.call(Request::new(Body::empty()))
	})
	.and_then(|response| {
		// do something with response...
	});
	
hyper::rt::run(request);

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in tower-hyper by you, shall be licensed as MIT, without any additional terms or conditions.

Commit count: 60

cargo fmt