-
I have added Brotli-Asgi middleware to my Starlette api but for a specific route that returns a zip file via StreamingResponse, I'd like to exclude the brotli compression. Is this possible? |
Beta Was this translation helpful? Give feedback.
Answered by
Kludex
Jan 14, 2024
Replies: 1 comment
-
Now, it's possible to apply middlewares by See https://www.starlette.io/middleware/#applying-middleware-to-groups-of-routes for more details. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now, it's possible to apply middlewares by
Router
,Route
,Mount
, and others.See https://www.starlette.io/middleware/#applying-middleware-to-groups-of-routes for more details.