3 unstable releases

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

#41 in #client-connection

Download history 601/week @ 2023-12-18 727/week @ 2023-12-25 749/week @ 2024-01-01 691/week @ 2024-01-08 676/week @ 2024-01-15 701/week @ 2024-01-22 660/week @ 2024-01-29 626/week @ 2024-02-05 596/week @ 2024-02-12 554/week @ 2024-02-19 655/week @ 2024-02-26 637/week @ 2024-03-04 470/week @ 2024-03-11 230/week @ 2024-03-18 236/week @ 2024-03-25 263/week @ 2024-04-01

1,266 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
~91K SLoC