{"action":"created","issue":{"url":"https://api.github.com/repos/juttle/juttle-service/issues/12","repository_url":"https://api.github.com/repos/juttle/juttle-service","labels_url":"https://api.github.com/repos/juttle/juttle-service/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/juttle/juttle-service/issues/12/comments","events_url":"https://api.github.com/repos/juttle/juttle-service/issues/12/events","html_url":"https://github.com/juttle/juttle-service/pull/12","id":131791880,"number":12,"title":"Add compression middleware","user":{"login":"go-oleg","id":3344137,"avatar_url":"https://avatars.githubusercontent.com/u/3344137?v=3","gravatar_id":"","url":"https://api.github.com/users/go-oleg","html_url":"https://github.com/go-oleg","followers_url":"https://api.github.com/users/go-oleg/followers","following_url":"https://api.github.com/users/go-oleg/following{/other_user}","gists_url":"https://api.github.com/users/go-oleg/gists{/gist_id}","starred_url":"https://api.github.com/users/go-oleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-oleg/subscriptions","organizations_url":"https://api.github.com/users/go-oleg/orgs","repos_url":"https://api.github.com/users/go-oleg/repos","events_url":"https://api.github.com/users/go-oleg/events{/privacy}","received_events_url":"https://api.github.com/users/go-oleg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-05T23:49:16Z","updated_at":"2016-02-08T15:44:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/juttle/juttle-service/pulls/12","html_url":"https://github.com/juttle/juttle-service/pull/12","diff_url":"https://github.com/juttle/juttle-service/pull/12.diff","patch_url":"https://github.com/juttle/juttle-service/pull/12.patch"},"body":"We could add this to all the routes but POST /jobs gets the most benefit when used with `{ wait: true }`.\r\n\r\nI tried running the following request with `{ wait: true }`\r\n\r\n```\r\n{\r\n    \"bundle\": {\r\n      \"program\": \"emit -limit 1000 -from :0: | put name = 'hello world', value = 1000\"\r\n    },\r\n  \"wait\": true\r\n}\r\n```\r\n\r\nand the size went from 100k uncompressed to 3k compressed.\r\n\r\n@mstemm, @demmer , thoughts/concerns?"},"comment":{"url":"https://api.github.com/repos/juttle/juttle-service/issues/comments/181431218","html_url":"https://github.com/juttle/juttle-service/pull/12#issuecomment-181431218","issue_url":"https://api.github.com/repos/juttle/juttle-service/issues/12","id":181431218,"user":{"login":"go-oleg","id":3344137,"avatar_url":"https://avatars.githubusercontent.com/u/3344137?v=3","gravatar_id":"","url":"https://api.github.com/users/go-oleg","html_url":"https://github.com/go-oleg","followers_url":"https://api.github.com/users/go-oleg/followers","following_url":"https://api.github.com/users/go-oleg/following{/other_user}","gists_url":"https://api.github.com/users/go-oleg/gists{/gist_id}","starred_url":"https://api.github.com/users/go-oleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-oleg/subscriptions","organizations_url":"https://api.github.com/users/go-oleg/orgs","repos_url":"https://api.github.com/users/go-oleg/repos","events_url":"https://api.github.com/users/go-oleg/events{/privacy}","received_events_url":"https://api.github.com/users/go-oleg/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T15:44:00Z","updated_at":"2016-02-08T15:44:00Z","body":"@mstemm I added a config option called `compress_response` under the to-be-renamed `juttled`. I set it to `true` by default and applied it to all routes, not just to `/jobs` POST."}}