Skip to main content

Crate alux_http_poem

Crate alux_http_poem 

Source
Expand description

Interprets typed HTTP programs as executable Poem routes.

The interpretation chooses Poem’s extractors for input roles, its responses for output kinds, and Arc for the runtime handle of a semantic context. Those choices stay inside this crate: the program compiled here is the same value any other interpreter folds.

Structs§

PoemBodyInput
Marks a JSON value extracted from the request body by Poem.
PoemEndpoint
Erases a native Poem endpoint for route composition.
PoemFileOutput
Converts semantic file results into downloadable Poem responses.
PoemFileResponse
Carries a file result and filename until Poem creates the response.
PoemHandlerImpl
Interprets typed HTTP programs as executable Poem routes.
PoemHeaderInput
Marks a typed value extracted from a request header by Poem.
PoemJsonOutput
Converts semantic results into Poem JSON responses.
PoemPathInput
Marks a value extracted from the request path by Poem.
PoemQueryInput
Marks a value extracted from the query string by Poem.
PoemRequestInput
Marks a value extracted through Poem’s general request extractor.
PoemRoute
Carries a composable collection of native Poem endpoints.
PoemRouteImpl
Interprets categorical route composition as native Poem routing.
PoemSelector
Carries route-selection meaning before it is interpreted by Poem.

Traits§

PoemFileErrorAlg
Maps file-opening failures to their HTTP response status.