Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: integrate a Gzip Handler #330

Open
meox opened this issue Apr 1, 2021 · 3 comments
Open

Proposal: integrate a Gzip Handler #330

meox opened this issue Apr 1, 2021 · 3 comments

Comments

@meox
Copy link

meox commented Apr 1, 2021

Is there a way to have at package level smthg similar to:
https://gist.github.com/CJEnright/bc2d8b8dc0c1389a9feeddb110f822d7

@v-grabko1999
Copy link

create a middleware for this https://gist.github.com/xDarkicex/ccc714cd0a91bad29a499fe15becf3a4

@M1kep
Copy link

M1kep commented Dec 21, 2021

Is there an issue with using the compress middleware from https://github.com/gorilla/handlers? The Gorilla handlers are mentioned here: https://github.com/julienschmidt/httprouter#where-can-i-find-middleware-x

@dolmen
Copy link

dolmen commented Apr 26, 2022

There is no need to integrate a Gzip handler. You can wrap the router with a Gzip handler such as github.com/NYTimes/gziphandler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants