Middleware#
Middlewares in Litestar are ASGI apps that are called “in the middle” between the application entrypoint and the route handler function.
Litestar ships with several builtin middlewares that are easy to configure and use. See the documentation regarding these for more details.
See also
If you’re coming from Starlette / FastAPI, take a look at the migration guide: