Expand description
tower::Layer / axum middleware for Wardline pipelines.
This crate is the one deliberate async boundary in the workspace, and
only because axum requires it. Guard evaluation inside the middleware is
still synchronous — Pipeline::evaluate runs on the worker thread
after the body has been buffered. The async-ness is the framework’s, not
Wardline’s.
If you do not already have an async stack, use
examples/sync_http_server instead.
Structs§
- Wardline
Layer - A
tower::Layerthat evaluates a text pipeline against each request body. - Wardline
Service - The service produced by
WardlineLayer.
Enums§
- Body
Decision - What
decideconcluded about one request body. - Body
Error - The request body was not something the pipeline can inspect.
Functions§
- context_
from_ headers - Builds a
Contextfrom common request headers. - decide
- Runs
pipelineagainst a UTF-8 request body, synchronously. - layer
- Convenience constructor. Same as
WardlineLayer::new.