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

[server] compress responses with chi middleware #37

Open
jmaister opened this issue Aug 3, 2022 · 2 comments
Open

[server] compress responses with chi middleware #37

jmaister opened this issue Aug 3, 2022 · 2 comments

Comments

@jmaister
Copy link
Contributor

jmaister commented Aug 3, 2022

Configure chi or http server to compress the HTTP traffic.

@amanangira
Copy link
Contributor

@jmaister what do you mean by "compress" the HTTP traffic?

@jmaister
Copy link
Contributor Author

jmaister commented Aug 9, 2022

https://en.wikipedia.org/wiki/HTTP_compression

And here is how to implement it: https://pkg.go.dev/github.com/go-chi/chi/middleware#Compress

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

2 participants