Module middleware

Source
Expand description

§Middleware

Basic middleware system for processing requests and responses. Provides async middleware trait and pipeline composition.

Modules§

body_limit
Body Limit Middleware
logging
Logging Middleware
timeout
Timeout Middleware
timing
Timing Middleware
tracing
Tracing Middleware

Structs§

ErrorHandlingMiddleware
Middleware wrapper that can handle errors and convert them to responses
MiddlewarePipeline
Middleware pipeline that composes multiple middleware in sequence

Traits§

Middleware
Core middleware trait that can process requests before handlers and responses after handlers.

Type Aliases§

BoxFuture
Type alias for boxed future returned by middleware
MiddlewareResult
Type alias for async middleware function result