Middleware
Apion provides several built-in middleware components for common web application needs:
- Authentication: JWT-based authentication with role-based access control
- Compression: Automatic response compression (Brotli, Gzip, Deflate)
- CORS: Cross-Origin Resource Sharing support
- Cookies: Cookie management with signing and JSON support
- Logging: Configurable request logging
- Rate Limiting: Request rate limiting and throttling
- Security: Security headers and best practices
- Static Files: Static file serving with directory support
Each middleware can be easily configured and composed to build secure, performant web applications. Select a middleware from the menu to learn more about its specific features and configuration options.