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
546 downloads per month
Used in 3 crates
28KB
615 lines
tower-hyper
A hyper based tower transport layer.
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