{"action":"created","issue":{"url":"https://api.github.com/repos/rmohr/static3/issues/11","repository_url":"https://api.github.com/repos/rmohr/static3","labels_url":"https://api.github.com/repos/rmohr/static3/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/rmohr/static3/issues/11/comments","events_url":"https://api.github.com/repos/rmohr/static3/issues/11/events","html_url":"https://github.com/rmohr/static3/issues/11","id":154938292,"number":11,"title":"Support gzip on the fly","user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-15T23:28:51Z","updated_at":"2016-05-19T07:39:37Z","closed_at":null,"body":"Python includes a built-in `gzip` module which since Python 3.2 supports [`gzip.compress(…)`](https://docs.python.org/3/library/gzip.html#gzip.compress).\r\n\r\nDo you think it would make sense to allow on the fly gzip encoding?"},"comment":{"url":"https://api.github.com/repos/rmohr/static3/issues/comments/220250088","html_url":"https://github.com/rmohr/static3/issues/11#issuecomment-220250088","issue_url":"https://api.github.com/repos/rmohr/static3/issues/11","id":220250088,"user":{"login":"rmohr","id":4534621,"avatar_url":"https://avatars.githubusercontent.com/u/4534621?v=3","gravatar_id":"","url":"https://api.github.com/users/rmohr","html_url":"https://github.com/rmohr","followers_url":"https://api.github.com/users/rmohr/followers","following_url":"https://api.github.com/users/rmohr/following{/other_user}","gists_url":"https://api.github.com/users/rmohr/gists{/gist_id}","starred_url":"https://api.github.com/users/rmohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmohr/subscriptions","organizations_url":"https://api.github.com/users/rmohr/orgs","repos_url":"https://api.github.com/users/rmohr/repos","events_url":"https://api.github.com/users/rmohr/events{/privacy}","received_events_url":"https://api.github.com/users/rmohr/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T07:39:37Z","updated_at":"2016-05-19T07:39:37Z","body":"Hi @balloob,\r\n\r\nWould 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.\r\n\r\nAlso check out [wsgizgip](https://pypi.python.org/pypi/wsgigzip), which is a very simple gzip wsgi wrapper.\r\n\r\nMaybe that is already enough for you?"}}