{"action":"created","issue":{"url":"https://api.github.com/repos/tomkuijsten/restup/issues/43","repository_url":"https://api.github.com/repos/tomkuijsten/restup","labels_url":"https://api.github.com/repos/tomkuijsten/restup/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/tomkuijsten/restup/issues/43/comments","events_url":"https://api.github.com/repos/tomkuijsten/restup/issues/43/events","html_url":"https://github.com/tomkuijsten/restup/issues/43","id":139838565,"number":43,"title":"Add support for Accept-Encoding: gzip","user":{"login":"Jark","id":754147,"avatar_url":"https://avatars.githubusercontent.com/u/754147?v=3","gravatar_id":"","url":"https://api.github.com/users/Jark","html_url":"https://github.com/Jark","followers_url":"https://api.github.com/users/Jark/followers","following_url":"https://api.github.com/users/Jark/following{/other_user}","gists_url":"https://api.github.com/users/Jark/gists{/gist_id}","starred_url":"https://api.github.com/users/Jark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jark/subscriptions","organizations_url":"https://api.github.com/users/Jark/orgs","repos_url":"https://api.github.com/users/Jark/repos","events_url":"https://api.github.com/users/Jark/events{/privacy}","received_events_url":"https://api.github.com/users/Jark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomkuijsten/restup/labels/feature","name":"feature","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"Jark","id":754147,"avatar_url":"https://avatars.githubusercontent.com/u/754147?v=3","gravatar_id":"","url":"https://api.github.com/users/Jark","html_url":"https://github.com/Jark","followers_url":"https://api.github.com/users/Jark/followers","following_url":"https://api.github.com/users/Jark/following{/other_user}","gists_url":"https://api.github.com/users/Jark/gists{/gist_id}","starred_url":"https://api.github.com/users/Jark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jark/subscriptions","organizations_url":"https://api.github.com/users/Jark/orgs","repos_url":"https://api.github.com/users/Jark/repos","events_url":"https://api.github.com/users/Jark/events{/privacy}","received_events_url":"https://api.github.com/users/Jark/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-10T09:53:35Z","updated_at":"2016-03-11T14:26:43Z","closed_at":null,"body":"Now that we have support for files we should probably add support for gzip compression if the client requests it.\r\n\r\nThe approach that I'm going to take is to implement this on HttpServer level, so that it will compress the content back with the encoding that the client requests and sets the Content-Encoding level as a result.\r\n\r\nIn the process I might change the HttpServerResponse object into a RouteHandlerResponse to more firmly define that the route handler response is not the final response and that there will be some (further) processing involved."},"comment":{"url":"https://api.github.com/repos/tomkuijsten/restup/issues/comments/195387363","html_url":"https://github.com/tomkuijsten/restup/issues/43#issuecomment-195387363","issue_url":"https://api.github.com/repos/tomkuijsten/restup/issues/43","id":195387363,"user":{"login":"Jark","id":754147,"avatar_url":"https://avatars.githubusercontent.com/u/754147?v=3","gravatar_id":"","url":"https://api.github.com/users/Jark","html_url":"https://github.com/Jark","followers_url":"https://api.github.com/users/Jark/followers","following_url":"https://api.github.com/users/Jark/following{/other_user}","gists_url":"https://api.github.com/users/Jark/gists{/gist_id}","starred_url":"https://api.github.com/users/Jark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jark/subscriptions","organizations_url":"https://api.github.com/users/Jark/orgs","repos_url":"https://api.github.com/users/Jark/repos","events_url":"https://api.github.com/users/Jark/events{/privacy}","received_events_url":"https://api.github.com/users/Jark/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T14:26:43Z","updated_at":"2016-03-11T14:26:43Z","body":"I've got a little prototype here: https://github.com/tomkuijsten/restup/compare/master...Jark:feature-add-support-for-compression which is working, but needs some refactoring to correctly adjust the content-length property. "}}