alux-http-axum
alux-http-axum interprets an alux-http program as executable
axum routes. The interpreter chooses axum extractors for input roles, axum
responses for output kinds, and Arc for the runtime handle of a semantic context.
use HttpProgramExt;
use AxumHandlerImpl;
let api = new;
let router = api.compile_http.into_axum;
serve.await?;
Shared state reaches a handler as the semantic context from the program, not as axum state. This keeps framework types out of the specification and its domain operations.
axum uses /status/{id} for a parameter path. The same program compiled with
alux-http-poem routes /status/:id and describes it identically.