salvo-middleware - Salvo Middleware Implementation
Implement middleware for authentication, logging, CORS, and request/response modification
Tags
Updated: 2026-03-25Typical Inputs
Typical Outputs
What this skill does
- read request
- write response
- call next handler
- skip handler chain
- validate token
- log request
- log response
- set response header
- enable CORS
- limit rate
- share data in depot
- stop execution
- check execution status
- compress response
- timeout request
- add CSRF protection
- limit concurrent requests
- limit request size
Inputs
- Salvo router
- Request object
- Depot object
- Response object
- FlowCtrl object
- middleware configuration
Outputs
- modified request
- modified response
- early response
- shared data in depot
- logged information
Requirements
- Rust environment
- Salvo framework
