Implement rate limiting to protect APIs from abuse. Use for preventing DDoS attacks and ensuring fair resource usage.
find ~/salvo-rs/ -name "*.skill"
Handle file uploads (single/multiple), downloads, and multipart forms. Use for file management, image uploads, and...
Limit concurrent requests to protect resources. Use for file uploads, expensive operations, and preventing resource...
Path parameter syntax guide for Salvo routing. Explains the `{}` syntax (v0.76+) vs deprecated `<>` syntax, with...
Implement graceful server shutdown to handle in-flight requests before stopping. Use for zero-downtime deployments...
Integrate databases with Salvo using SQLx, Diesel, SeaORM, or other ORMs. Use for persistent data storage and...
Implement real-time features using WebSocket and Server-Sent Events (SSE). Use for chat applications, live updates,...
Create basic Salvo web applications with handlers, routers, and server setup. Use when starting a new Salvo project...
Implement flash messages for one-time notifications across redirects. Use for success/error messages after form submissions.
Configure Cross-Origin Resource Sharing (CORS) and security headers. Use for APIs accessed from browsers on...
Generate OpenAPI documentation automatically from Salvo handlers. Use for API documentation, Swagger UI, and API...
Implement request logging, tracing, and observability. Use for debugging, monitoring, and production observability.
Extract and validate data from requests including JSON, forms, query parameters, and path parameters. Use for...
Implement reverse proxy to forward requests to backend services. Use for load balancing, API gateways, and...
Compress HTTP responses using gzip, brotli, zstd, or deflate. Use for reducing bandwidth and improving load times.
Handle errors gracefully with custom error types, status codes, and error pages. Use for building robust APIs with...
Implement authentication and authorization using JWT, Basic Auth, or custom schemes. Use for securing API endpoints...
Implement caching strategies for improved performance. Use for reducing database load and speeding up responses.
Implement CSRF (Cross-Site Request Forgery) protection using cookie or session storage. Use for protecting forms and...
Implement middleware for authentication, logging, CORS, and request processing. Use for cross-cutting concerns and...