Expand description
§Middleware V2
New middleware system with handle(request, next) pattern for Laravel-style simplicity. This is the new middleware API that will replace the current one.
Modules§
- composition
- Middleware composition utilities
- factories
- Middleware factories for common patterns
- introspection
- Middleware introspection and debugging utilities
Structs§
- Body
Limit Middleware - Body size limit middleware
- Composed
Middleware - A composed middleware that executes two middleware in sequence
- Conditional
Middleware - Conditional middleware wrapper that can skip execution based on path patterns and HTTP methods
- Cors
Middleware - CORS middleware
- Logging
Middleware - Example logging middleware using the new pattern
- Middleware
Pipeline V2 - Middleware pipeline for the new system
- Next
- Next represents the rest of the middleware chain
- Profiler
Middleware - Middleware profiler that logs timing for each middleware in the pipeline
- Rate
Limit Middleware - Rate limiting middleware
- Simple
Auth Middleware - Example auth middleware using the new pattern
- Timeout
Middleware - Timeout middleware
Traits§
- Middleware
- New middleware trait with Laravel-style handle(request, next) pattern Uses boxed futures to be dyn-compatible
Type Aliases§
- Next
Future - Type alias for boxed future in Next