Skip to main content

alux_http_parts/
lib.rs

1#![doc = include_str!("../README.md")]
2
3//! States the parts a request and an answer are made of, for interpretations that need them.
4//!
5//! A request and an answer are values here, naming no transport and no framework, so a crate
6//! stating requests needs no interpreter to state them with.
7//!
8//! Poem, axum, and Salvo each read parts themselves. The rest have the bytes and the media type a
9//! caller sent and nothing that reads them, so what states the sequence is here rather than copied
10//! into each of them. Nothing about a framework is named: what arrives is bytes, and what comes out
11//! is [`alux_http::ChunksAlg`] of [`alux_http::PartAlg`], the same as everywhere else.
12
13mod message;
14mod read;
15
16pub use message::*;
17pub use read::*;