#http-server #client-server #hyper-http #async-http #http #hyper-client

hyperdriver

The missing middle for Hyper - Servers and Clients with ergonomic APIs

25 releases (7 breaking)

new 0.8.5 Dec 13, 2024
0.8.2 Nov 2, 2024
0.5.7 Dec 9, 2024
0.5.6 Jul 25, 2024

#148 in HTTP client

Download history 208/week @ 2024-08-22 222/week @ 2024-08-29 173/week @ 2024-09-05 144/week @ 2024-09-12 140/week @ 2024-09-19 94/week @ 2024-09-26 266/week @ 2024-10-03 29/week @ 2024-10-10 256/week @ 2024-10-17 217/week @ 2024-10-24 232/week @ 2024-10-31 56/week @ 2024-11-07 45/week @ 2024-11-14 14/week @ 2024-11-21 24/week @ 2024-11-28 618/week @ 2024-12-05

703 downloads per month
Used in hydiscovery

MIT license

500KB
12K SLoC

hyperdriver: Tools and libraries which help out hyper

crate Docs Build Status MIT licensed

This crate exists to fill the missing middle between hyper and full-fledged frameworks like axum. Crates like axum provide servers, and crates like reqwest provide clients, but both are specific to what they do. hyperdriver provides a set of services and tools which can be used to build both servers and clients in a more flexible way.

If you want to control the protocol, or the transport (e.g. using something other than TCP) then hyperdriver is for you.

Features

  • Server with graceful shutdown, HTTP/2 and TLS support.
  • Client with HTTP/2 and TLS support.
  • Streams which can dispatch between TCP, Unix domain, and in-process duplex sockets.
  • A unifying Body type to make building small Clients and Servers easier.
  • Bridge between Tokio and Hyper, similar to hyper-utils.

Dependencies

~5–23MB
~431K SLoC