中介軟體¶
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.
也參考
If you're coming from Starlette / FastAPI, take a look at the migration guide: