3 unstable releases

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

#49 in #client-connection

Download history 155/week @ 2024-07-22 171/week @ 2024-07-29 142/week @ 2024-08-05 152/week @ 2024-08-12 143/week @ 2024-08-19 126/week @ 2024-08-26 123/week @ 2024-09-02 122/week @ 2024-09-09 111/week @ 2024-09-16 163/week @ 2024-09-23 124/week @ 2024-09-30 86/week @ 2024-10-07 126/week @ 2024-10-14 149/week @ 2024-10-21 77/week @ 2024-10-28 187/week @ 2024-11-04

546 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
~93K SLoC