Litestar Middleware

Design and apply Litestar middleware for cross-cutting concerns such as CORS, CSRF, allowed-host checks, compression, rate limiting, logging, sessions, request enrichment, policy enforcement, and custom ASGI pipeline control. Use when behavior must wrap broad route sets consistently across the ASGI stack. Do not use for route-specific business rules, simple response mutation better handled by lifecycle hooks, or auth/guard policy work that belongs in security-focused skills.

alti3 a5e49b7 4 files · 9.3 KB Updated

File contents

alti3/litestar-skills/tree/main/plugins/litestar/skills/litestar-middleware commit a5e49b7f74

Frequently asked questions

npx skillmds@latest add alti3/litestar-middleware