3 unstable releases

0.1.1 Aug 8, 2019
0.1.0 May 31, 2019
0.0.0 May 30, 2019

#39 in #client-connection

Download history 663/week @ 2023-11-25 509/week @ 2023-12-02 672/week @ 2023-12-09 626/week @ 2023-12-16 631/week @ 2023-12-23 831/week @ 2023-12-30 659/week @ 2024-01-06 687/week @ 2024-01-13 685/week @ 2024-01-20 663/week @ 2024-01-27 674/week @ 2024-02-03 588/week @ 2024-02-10 582/week @ 2024-02-17 640/week @ 2024-02-24 619/week @ 2024-03-02 535/week @ 2024-03-09

2,449 downloads per month
Used in 3 crates

MIT license

28KB
615 lines

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.


lib.rs:

A tower hyper bridge library that provides utilties to use hyper with a tower middleware stack.

Overview

This library is comprised of client and server modules. Currently, only the client portion is done and working. The server side is blocked partially by hypers use of its own Service and MakeService traits.

Dependencies

~5MB
~90K SLoC