Skip to main content

Module middleware

Module middleware 

Source
Expand description

Generic request middleware: request IDs, tracing, timeouts, body limits, and CORS. Every helper here takes its policy (durations, byte limits, allowed origins/methods/headers) as parameters — none of it is Soma policy, only Axum/tower-http mechanics.

Modules§

body_limit
Generic request body size limit.
cors
Generic CORS configuration.
request_id
Request-ID middleware.
timeout
Generic per-request timeout.
tracing
Generic HTTP request tracing.