Skip to main content

alux_http_hyper/
lib.rs

1#![doc = include_str!("../README.md")]
2
3//! Serves an [`alux-http`](https://docs.rs/alux-http) surface over hyper, with no web framework.
4//!
5//! [`alux-http-direct`](https://docs.rs/alux-http-direct) answers a request with values and carries
6//! no transport, so something has to move the bytes. This is that something, and nothing more: it
7//! reads a hyper request into a `DirectRequest`, hands it to the surface, and writes the answer back
8//! as a hyper response.
9//!
10//! It also states the accepting itself, in [`HyperConnections`]. A framework that hands out a
11//! service rather than a loop needs nothing more than that to serve, so the interpreters for those
12//! frameworks accept through this one rather than each writing the same loop.
13
14mod connections;
15mod message;
16mod route;
17mod server;
18
19pub use connections::*;
20pub use message::*;
21pub use route::*;
22pub use server::*;