Skip to main content

alux_http_direct/
lib.rs

1#![doc = include_str!("../README.md")]
2
3//! Interprets typed HTTP programs as a surface that answers requests itself.
4//!
5//! This interpretation implements the specification rather than delegating to a framework: it
6//! matches a request against the paths a program states, binds what those paths capture, reads each
7//! argument from the role it was declared under, applies the operation, and renders the answer,
8//! including the failures routing itself produces. It carries no transport and no runtime, so
9//! whatever moves bytes decides how a request arrives.
10//!
11//! Because it answers with values rather than with a framework's types, it is the reference another
12//! interpretation can be held to.
13
14mod handler;
15mod input;
16mod output;
17mod route;
18
19// A request and an answer are stated by `alux-http-parts`, which names no interpretation.
20pub use alux_http_parts::{Chunks, DirectBody, DirectError, DirectRequest, DirectResponse};
21pub use handler::*;
22pub use input::*;
23pub use output::*;
24pub use route::*;