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

Support gzip on the fly #11

Open
balloob opened this issue May 15, 2016 · 1 comment
Open

Support gzip on the fly #11

balloob opened this issue May 15, 2016 · 1 comment

Comments

@balloob
Copy link

balloob commented May 15, 2016

Python includes a built-in gzip module which since Python 3.2 supports gzip.compress(…).

Do you think it would make sense to allow on the fly gzip encoding?

@rmohr
Copy link
Owner

rmohr commented May 19, 2016

Hi @balloob,

Would probably make sense, but I am not sure if it is that easy because normally you want to stream the response and not first load the whole file, compress it and then serve it.

Also check out wsgizgip, which is a very simple gzip wsgi wrapper.

Maybe that is already enough for you?

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

No branches or pull requests

2 participants