alux-http-poem 0.1.1

Poem interpretation of ALUX typed HTTP programs
Documentation

alux-http-poem

alux-http-poem interprets an alux-http program as executable Poem routes. The interpreter chooses Poem extractors for input roles, Poem responses for output kinds, and Arc for the runtime handle of a semantic context.

use alux_http::HttpProgramExt;
use alux_http_poem::PoemHandlerImpl;

let api = PoemHandlerImpl::new(App::new());
let route = api.compile_http(api.status_api::<App>()).into_poem();

poem::Server::new(poem::listener::TcpListener::bind("0.0.0.0:3000")).run(route).await?;

Poem bodies, headers, errors, and endpoint erasure stay inside this crate. Compiling the same program with alux-http-text observes the identical ordered surface.