Skip to content

How can I exempt a certain route/endpoint from gzip/brotli middleware? #1661

Answered by Kludex
hoIIer asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

Kludex
Jan 14, 2024
Maintainer Sponsor

You must be logged in to vote
0 replies
Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1660 on June 01, 2022 04:05.