{"action":"created","issue":{"url":"https://api.github.com/repos/gin-gonic/gin/issues/445","labels_url":"https://api.github.com/repos/gin-gonic/gin/issues/445/labels{/name}","comments_url":"https://api.github.com/repos/gin-gonic/gin/issues/445/comments","events_url":"https://api.github.com/repos/gin-gonic/gin/issues/445/events","html_url":"https://github.com/gin-gonic/gin/issues/445","id":108622663,"number":445,"title":"How to compress the response with gin?","user":{"login":"shengzhi","id":1661173,"avatar_url":"https://avatars.githubusercontent.com/u/1661173?v=3","gravatar_id":"","url":"https://api.github.com/users/shengzhi","html_url":"https://github.com/shengzhi","followers_url":"https://api.github.com/users/shengzhi/followers","following_url":"https://api.github.com/users/shengzhi/following{/other_user}","gists_url":"https://api.github.com/users/shengzhi/gists{/gist_id}","starred_url":"https://api.github.com/users/shengzhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shengzhi/subscriptions","organizations_url":"https://api.github.com/users/shengzhi/orgs","repos_url":"https://api.github.com/users/shengzhi/repos","events_url":"https://api.github.com/users/shengzhi/events{/privacy}","received_events_url":"https://api.github.com/users/shengzhi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T09:44:55Z","updated_at":"2015-09-28T16:11:51Z","closed_at":null,"body":"I want to compress the http response with gzip or deflate, the algorithm is determined by \"Accept-Encoding\" of request header. \r\nHow to do it?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/gin-gonic/gin/issues/comments/143792139","html_url":"https://github.com/gin-gonic/gin/issues/445#issuecomment-143792139","issue_url":"https://api.github.com/repos/gin-gonic/gin/issues/445","id":143792139,"user":{"login":"nazwa","id":4353913,"avatar_url":"https://avatars.githubusercontent.com/u/4353913?v=3","gravatar_id":"","url":"https://api.github.com/users/nazwa","html_url":"https://github.com/nazwa","followers_url":"https://api.github.com/users/nazwa/followers","following_url":"https://api.github.com/users/nazwa/following{/other_user}","gists_url":"https://api.github.com/users/nazwa/gists{/gist_id}","starred_url":"https://api.github.com/users/nazwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazwa/subscriptions","organizations_url":"https://api.github.com/users/nazwa/orgs","repos_url":"https://api.github.com/users/nazwa/repos","events_url":"https://api.github.com/users/nazwa/events{/privacy}","received_events_url":"https://api.github.com/users/nazwa/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T16:11:51Z","updated_at":"2015-09-28T16:11:51Z","body":"Have a look at the Contrib repo. Not sure if it will work out of the box, but should at least point you in the right direction :smile:\r\n\r\nhttps://github.com/gin-gonic/contrib/tree/master/gzip"}}