{"action":"closed","number":10466,"pull_request":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/10466","id":216771487,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NzcxNDg3","html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/10466","diff_url":"https://github.com/ballerina-platform/ballerina-lang/pull/10466.diff","patch_url":"https://github.com/ballerina-platform/ballerina-lang/pull/10466.patch","issue_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/10466","number":10466,"state":"closed","locked":false,"title":"Enable Compression/Decompression based on the Content-Type","user":{"login":"chamil321","id":8381003,"node_id":"MDQ6VXNlcjgzODEwMDM=","avatar_url":"https://avatars3.githubusercontent.com/u/8381003?v=4","gravatar_id":"","url":"https://api.github.com/users/chamil321","html_url":"https://github.com/chamil321","followers_url":"https://api.github.com/users/chamil321/followers","following_url":"https://api.github.com/users/chamil321/following{/other_user}","gists_url":"https://api.github.com/users/chamil321/gists{/gist_id}","starred_url":"https://api.github.com/users/chamil321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamil321/subscriptions","organizations_url":"https://api.github.com/users/chamil321/orgs","repos_url":"https://api.github.com/users/chamil321/repos","events_url":"https://api.github.com/users/chamil321/events{/privacy}","received_events_url":"https://api.github.com/users/chamil321/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n> Introduce a constrain to enable Compression/Decompression based on the Content-Type.\r\n> Fixes https://github.com/ballerina-platform/ballerina-lang/issues/4987\r\n\r\n## Approach\r\n> Introduce service level compression annotation to add set of content types which allows the compression.\r\n```ballerina\r\n@http:ServiceConfig {\r\n    compression: {\r\n        enable: http:COMPRESSION_ALWAYS, \r\n        contentTypes:[\"text/plain\",\"Application/Json\"]\r\n    }\r\n}\r\n```\r\n## Automation tests\r\n - Unit tests \r\n   > Added\r\n - Integration tests\r\n   > Already available\r\n","created_at":"2018-09-19T20:47:25Z","updated_at":"2018-09-21T11:20:02Z","closed_at":"2018-09-21T11:20:02Z","merged_at":"2018-09-21T11:20:02Z","merge_commit_sha":"250a4b2a8f384952daa5da75e66f5c26686ec95d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":896399673,"node_id":"MDU6TGFiZWw4OTYzOTk2NzM=","url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels/Component/HTTP","name":"Component/HTTP","color":"006b75","default":false},{"id":830057046,"node_id":"MDU6TGFiZWw4MzAwNTcwNDY=","url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels/Component/stdlib","name":"Component/stdlib","color":"006b75","default":false},{"id":684576252,"node_id":"MDU6TGFiZWw2ODQ1NzYyNTI=","url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels/Type/Task","name":"Type/Task","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/10466/commits","review_comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/10466/comments","review_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/10466/comments","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/93a0d00e01dc238ecc94a340730833dc006f4044","head":{"label":"chamil321:compression","ref":"compression","sha":"93a0d00e01dc238ecc94a340730833dc006f4044","user":{"login":"chamil321","id":8381003,"node_id":"MDQ6VXNlcjgzODEwMDM=","avatar_url":"https://avatars3.githubusercontent.com/u/8381003?v=4","gravatar_id":"","url":"https://api.github.com/users/chamil321","html_url":"https://github.com/chamil321","followers_url":"https://api.github.com/users/chamil321/followers","following_url":"https://api.github.com/users/chamil321/following{/other_user}","gists_url":"https://api.github.com/users/chamil321/gists{/gist_id}","starred_url":"https://api.github.com/users/chamil321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamil321/subscriptions","organizations_url":"https://api.github.com/users/chamil321/orgs","repos_url":"https://api.github.com/users/chamil321/repos","events_url":"https://api.github.com/users/chamil321/events{/privacy}","received_events_url":"https://api.github.com/users/chamil321/received_events","type":"User","site_admin":false},"repo":{"id":90233065,"node_id":"MDEwOlJlcG9zaXRvcnk5MDIzMzA2NQ==","name":"ballerina","full_name":"chamil321/ballerina","private":false,"owner":{"login":"chamil321","id":8381003,"node_id":"MDQ6VXNlcjgzODEwMDM=","avatar_url":"https://avatars3.githubusercontent.com/u/8381003?v=4","gravatar_id":"","url":"https://api.github.com/users/chamil321","html_url":"https://github.com/chamil321","followers_url":"https://api.github.com/users/chamil321/followers","following_url":"https://api.github.com/users/chamil321/following{/other_user}","gists_url":"https://api.github.com/users/chamil321/gists{/gist_id}","starred_url":"https://api.github.com/users/chamil321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamil321/subscriptions","organizations_url":"https://api.github.com/users/chamil321/orgs","repos_url":"https://api.github.com/users/chamil321/repos","events_url":"https://api.github.com/users/chamil321/events{/privacy}","received_events_url":"https://api.github.com/users/chamil321/received_events","type":"User","site_admin":false},"html_url":"https://github.com/chamil321/ballerina","description":"Ballerina is a new programming language for integration built on a sequence diagram metaphor.","fork":true,"url":"https://api.github.com/repos/chamil321/ballerina","forks_url":"https://api.github.com/repos/chamil321/ballerina/forks","keys_url":"https://api.github.com/repos/chamil321/ballerina/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chamil321/ballerina/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chamil321/ballerina/teams","hooks_url":"https://api.github.com/repos/chamil321/ballerina/hooks","issue_events_url":"https://api.github.com/repos/chamil321/ballerina/issues/events{/number}","events_url":"https://api.github.com/repos/chamil321/ballerina/events","assignees_url":"https://api.github.com/repos/chamil321/ballerina/assignees{/user}","branches_url":"https://api.github.com/repos/chamil321/ballerina/branches{/branch}","tags_url":"https://api.github.com/repos/chamil321/ballerina/tags","blobs_url":"https://api.github.com/repos/chamil321/ballerina/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chamil321/ballerina/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chamil321/ballerina/git/refs{/sha}","trees_url":"https://api.github.com/repos/chamil321/ballerina/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chamil321/ballerina/statuses/{sha}","languages_url":"https://api.github.com/repos/chamil321/ballerina/languages","stargazers_url":"https://api.github.com/repos/chamil321/ballerina/stargazers","contributors_url":"https://api.github.com/repos/chamil321/ballerina/contributors","subscribers_url":"https://api.github.com/repos/chamil321/ballerina/subscribers","subscription_url":"https://api.github.com/repos/chamil321/ballerina/subscription","commits_url":"https://api.github.com/repos/chamil321/ballerina/commits{/sha}","git_commits_url":"https://api.github.com/repos/chamil321/ballerina/git/commits{/sha}","comments_url":"https://api.github.com/repos/chamil321/ballerina/comments{/number}","issue_comment_url":"https://api.github.com/repos/chamil321/ballerina/issues/comments{/number}","contents_url":"https://api.github.com/repos/chamil321/ballerina/contents/{+path}","compare_url":"https://api.github.com/repos/chamil321/ballerina/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chamil321/ballerina/merges","archive_url":"https://api.github.com/repos/chamil321/ballerina/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chamil321/ballerina/downloads","issues_url":"https://api.github.com/repos/chamil321/ballerina/issues{/number}","pulls_url":"https://api.github.com/repos/chamil321/ballerina/pulls{/number}","milestones_url":"https://api.github.com/repos/chamil321/ballerina/milestones{/number}","notifications_url":"https://api.github.com/repos/chamil321/ballerina/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chamil321/ballerina/labels{/name}","releases_url":"https://api.github.com/repos/chamil321/ballerina/releases{/id}","deployments_url":"https://api.github.com/repos/chamil321/ballerina/deployments","created_at":"2017-05-04T07:15:32Z","updated_at":"2018-09-21T06:39:16Z","pushed_at":"2018-09-21T08:28:46Z","git_url":"git://github.com/chamil321/ballerina.git","ssh_url":"git@github.com:chamil321/ballerina.git","clone_url":"https://github.com/chamil321/ballerina.git","svn_url":"https://github.com/chamil321/ballerina","homepage":"","size":255370,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ballerina-platform:master","ref":"master","sha":"d260e97049f05e7ee0151c5253c732bf32569345","user":{"login":"ballerina-platform","id":34733518,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzMzNTE4","avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":73930305,"node_id":"MDEwOlJlcG9zaXRvcnk3MzkzMDMwNQ==","name":"ballerina-lang","full_name":"ballerina-platform/ballerina-lang","private":false,"owner":{"login":"ballerina-platform","id":34733518,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzMzNTE4","avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ballerina-platform/ballerina-lang","description":"Ballerina is a compiled, transactional, statically and strongly typed programming language with textual and graphical syntaxes.","fork":false,"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang","forks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/forks","keys_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/teams","hooks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/hooks","issue_events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/events{/number}","events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/events","assignees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/assignees{/user}","branches_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/branches{/branch}","tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/tags","blobs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/languages","stargazers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/stargazers","contributors_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contributors","subscribers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscribers","subscription_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscription","commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contents/{+path}","compare_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/merges","archive_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/downloads","issues_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues{/number}","pulls_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels{/name}","releases_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/releases{/id}","deployments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/deployments","created_at":"2016-11-16T14:58:44Z","updated_at":"2018-09-21T11:19:32Z","pushed_at":"2018-09-21T11:20:02Z","git_url":"git://github.com/ballerina-platform/ballerina-lang.git","ssh_url":"git@github.com:ballerina-platform/ballerina-lang.git","clone_url":"https://github.com/ballerina-platform/ballerina-lang.git","svn_url":"https://github.com/ballerina-platform/ballerina-lang","homepage":"","size":255622,"stargazers_count":1321,"watchers_count":1321,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":394,"mirror_url":null,"archived":false,"open_issues_count":538,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":394,"open_issues":538,"watchers":1321,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/10466"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/10466"},"issue":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/10466"},"comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/10466/comments"},"review_comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/10466/comments"},"review_comment":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/10466/commits"},"statuses":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/93a0d00e01dc238ecc94a340730833dc006f4044"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"pamod","id":3785198,"node_id":"MDQ6VXNlcjM3ODUxOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/3785198?v=4","gravatar_id":"","url":"https://api.github.com/users/pamod","html_url":"https://github.com/pamod","followers_url":"https://api.github.com/users/pamod/followers","following_url":"https://api.github.com/users/pamod/following{/other_user}","gists_url":"https://api.github.com/users/pamod/gists{/gist_id}","starred_url":"https://api.github.com/users/pamod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamod/subscriptions","organizations_url":"https://api.github.com/users/pamod/orgs","repos_url":"https://api.github.com/users/pamod/repos","events_url":"https://api.github.com/users/pamod/events{/privacy}","received_events_url":"https://api.github.com/users/pamod/received_events","type":"User","site_admin":false},"comments":0,"review_comments":5,"maintainer_can_modify":false,"commits":8,"additions":485,"deletions":137,"changed_files":21}}
{"actor":{"display_login":"pamod"}}