{"action":"created","issue":{"url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/550","repository_url":"https://api.github.com/repos/SergioBenitez/Rocket","labels_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/550/labels{/name}","comments_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/550/comments","events_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/550/events","html_url":"https://github.com/SergioBenitez/Rocket/pull/550","id":292145305,"node_id":"MDExOlB1bGxSZXF1ZXN0MTY1NTMyMTM3","number":550,"title":"Compression Fairing in contrib crate","user":{"login":"Martin1887","id":4211771,"node_id":"MDQ6VXNlcjQyMTE3NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/4211771?v=4","gravatar_id":"","url":"https://api.github.com/users/Martin1887","html_url":"https://github.com/Martin1887","followers_url":"https://api.github.com/users/Martin1887/followers","following_url":"https://api.github.com/users/Martin1887/following{/other_user}","gists_url":"https://api.github.com/users/Martin1887/gists{/gist_id}","starred_url":"https://api.github.com/users/Martin1887/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martin1887/subscriptions","organizations_url":"https://api.github.com/users/Martin1887/orgs","repos_url":"https://api.github.com/users/Martin1887/repos","events_url":"https://api.github.com/users/Martin1887/events{/privacy}","received_events_url":"https://api.github.com/users/Martin1887/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-01-27T19:18:19Z","updated_at":"2018-06-29T02:50:08Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/SergioBenitez/Rocket/pulls/550","html_url":"https://github.com/SergioBenitez/Rocket/pull/550","diff_url":"https://github.com/SergioBenitez/Rocket/pull/550.diff","patch_url":"https://github.com/SergioBenitez/Rocket/pull/550.patch"},"body":"Hello.\r\n\r\nThis pull request provides compression support to all responses using the optional feature 'Compression', as requested in #528.\r\n\r\nThis feature provides brotli and gzip compression with the following requirements:\r\n\r\n- Gzip and Brotli are used only when the request has a 'Accept-Encoding' header with gzip or brotli respectively.\r\n- When Gzip and Brotli are supported, Brotli is used.\r\n- If the response has a 'Content-Encoding' header gzip, then gzip is used instead brotli.\r\n- If the response has no 'Content-Encoding' headers or it has br Content-Encoding, brotli is used.\r\n- Responses with 'Content-Type' 'image/*' are never compressed.\r\n- Responses with 'Content-Type' 'font/*' and brotli support are compressed in font brotli mode.\r\n- Responses with 'Content-Type' 'text/*' and brotli support are compressed in text brotli mode.\r\n- For the rest of content types, generic brotli mode is used.\r\n- Brotli quality is set to 2 for fast compression with compression ratio similar to gzip.\r\n- Tests have been created to test the funcionalities and all of them pass.\r\n\r\nRegards."},"comment":{"url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/comments/401231741","html_url":"https://github.com/SergioBenitez/Rocket/pull/550#issuecomment-401231741","issue_url":"https://api.github.com/repos/SergioBenitez/Rocket/issues/550","id":401231741,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTIzMTc0MQ==","user":{"login":"SergioBenitez","id":1480321,"node_id":"MDQ6VXNlcjE0ODAzMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/1480321?v=4","gravatar_id":"","url":"https://api.github.com/users/SergioBenitez","html_url":"https://github.com/SergioBenitez","followers_url":"https://api.github.com/users/SergioBenitez/followers","following_url":"https://api.github.com/users/SergioBenitez/following{/other_user}","gists_url":"https://api.github.com/users/SergioBenitez/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBenitez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBenitez/subscriptions","organizations_url":"https://api.github.com/users/SergioBenitez/orgs","repos_url":"https://api.github.com/users/SergioBenitez/repos","events_url":"https://api.github.com/users/SergioBenitez/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBenitez/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T02:50:08Z","updated_at":"2018-06-29T02:50:08Z","author_association":"OWNER","body":"@Martin1887 Please rebase."}}
{"actor":{"display_login":"SergioBenitez"}}