{"action":"opened","number":255,"pull_request":{"url":"https://api.github.com/repos/wso2/transport-http/pulls/255","id":215531390,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NTMxMzkw","html_url":"https://github.com/wso2/transport-http/pull/255","diff_url":"https://github.com/wso2/transport-http/pull/255.diff","patch_url":"https://github.com/wso2/transport-http/pull/255.patch","issue_url":"https://api.github.com/repos/wso2/transport-http/issues/255","number":255,"state":"open","locked":false,"title":"Add state-machine implementation for HTTP/2 listener","user":{"login":"ldclakmal","id":9639050,"node_id":"MDQ6VXNlcjk2MzkwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9639050?v=4","gravatar_id":"","url":"https://api.github.com/users/ldclakmal","html_url":"https://github.com/ldclakmal","followers_url":"https://api.github.com/users/ldclakmal/followers","following_url":"https://api.github.com/users/ldclakmal/following{/other_user}","gists_url":"https://api.github.com/users/ldclakmal/gists{/gist_id}","starred_url":"https://api.github.com/users/ldclakmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldclakmal/subscriptions","organizations_url":"https://api.github.com/users/ldclakmal/orgs","repos_url":"https://api.github.com/users/ldclakmal/repos","events_url":"https://api.github.com/users/ldclakmal/events{/privacy}","received_events_url":"https://api.github.com/users/ldclakmal/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n- Introduce states to handle HTTP/2 request response manipulation from the aspect of listener.\r\n- Improve readability, maintainability and handle error scenarios separately in each state.\r\n\r\n## Approach\r\nThe following would be state diagram of the implemented state machine from the aspect of listener.\r\n```\r\n                                             (initial, upgraded response for HTTP/1.1 request)\r\n                                                                  [ START ]\r\n                                                                      ||\r\n                                                                      \\/\r\n[ START ] ==> RECEIVING HEADERS ==> RECEIVING ENTITY BODY ==> ENTITY BODY RECEIVED\r\n                      /\\                                              ||\r\n                      ||                                              \\/\r\n[ STOP ] <== RESPONSE COMPLETED <== SENDING ENTITY BODY <== SENDING HEADERS\r\n                      |                                            /\\\r\n                      |____________________________________________||\r\n                                  (sending push promises)\r\n```\r\n\r\n### Related Issues\r\nhttps://github.com/ballerina-platform/ballerina-lang/issues/10372\r\nhttps://github.com/ballerina-platform/ballerina-lang/issues/9290","created_at":"2018-09-14T09:18:42Z","updated_at":"2018-09-14T09:18:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/transport-http/pulls/255/commits","review_comments_url":"https://api.github.com/repos/wso2/transport-http/pulls/255/comments","review_comment_url":"https://api.github.com/repos/wso2/transport-http/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/transport-http/issues/255/comments","statuses_url":"https://api.github.com/repos/wso2/transport-http/statuses/b0524387617bfe536fa3bbe4ff2ceeda11866f5d","head":{"label":"ldclakmal:state-machine-http2-listener","ref":"state-machine-http2-listener","sha":"b0524387617bfe536fa3bbe4ff2ceeda11866f5d","user":{"login":"ldclakmal","id":9639050,"node_id":"MDQ6VXNlcjk2MzkwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9639050?v=4","gravatar_id":"","url":"https://api.github.com/users/ldclakmal","html_url":"https://github.com/ldclakmal","followers_url":"https://api.github.com/users/ldclakmal/followers","following_url":"https://api.github.com/users/ldclakmal/following{/other_user}","gists_url":"https://api.github.com/users/ldclakmal/gists{/gist_id}","starred_url":"https://api.github.com/users/ldclakmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldclakmal/subscriptions","organizations_url":"https://api.github.com/users/ldclakmal/orgs","repos_url":"https://api.github.com/users/ldclakmal/repos","events_url":"https://api.github.com/users/ldclakmal/events{/privacy}","received_events_url":"https://api.github.com/users/ldclakmal/received_events","type":"User","site_admin":false},"repo":{"id":138308044,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgzMDgwNDQ=","name":"transport-http","full_name":"ldclakmal/transport-http","owner":{"login":"ldclakmal","id":9639050,"node_id":"MDQ6VXNlcjk2MzkwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/9639050?v=4","gravatar_id":"","url":"https://api.github.com/users/ldclakmal","html_url":"https://github.com/ldclakmal","followers_url":"https://api.github.com/users/ldclakmal/followers","following_url":"https://api.github.com/users/ldclakmal/following{/other_user}","gists_url":"https://api.github.com/users/ldclakmal/gists{/gist_id}","starred_url":"https://api.github.com/users/ldclakmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldclakmal/subscriptions","organizations_url":"https://api.github.com/users/ldclakmal/orgs","repos_url":"https://api.github.com/users/ldclakmal/repos","events_url":"https://api.github.com/users/ldclakmal/events{/privacy}","received_events_url":"https://api.github.com/users/ldclakmal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ldclakmal/transport-http","description":null,"fork":true,"url":"https://api.github.com/repos/ldclakmal/transport-http","forks_url":"https://api.github.com/repos/ldclakmal/transport-http/forks","keys_url":"https://api.github.com/repos/ldclakmal/transport-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldclakmal/transport-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldclakmal/transport-http/teams","hooks_url":"https://api.github.com/repos/ldclakmal/transport-http/hooks","issue_events_url":"https://api.github.com/repos/ldclakmal/transport-http/issues/events{/number}","events_url":"https://api.github.com/repos/ldclakmal/transport-http/events","assignees_url":"https://api.github.com/repos/ldclakmal/transport-http/assignees{/user}","branches_url":"https://api.github.com/repos/ldclakmal/transport-http/branches{/branch}","tags_url":"https://api.github.com/repos/ldclakmal/transport-http/tags","blobs_url":"https://api.github.com/repos/ldclakmal/transport-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldclakmal/transport-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldclakmal/transport-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldclakmal/transport-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldclakmal/transport-http/statuses/{sha}","languages_url":"https://api.github.com/repos/ldclakmal/transport-http/languages","stargazers_url":"https://api.github.com/repos/ldclakmal/transport-http/stargazers","contributors_url":"https://api.github.com/repos/ldclakmal/transport-http/contributors","subscribers_url":"https://api.github.com/repos/ldclakmal/transport-http/subscribers","subscription_url":"https://api.github.com/repos/ldclakmal/transport-http/subscription","commits_url":"https://api.github.com/repos/ldclakmal/transport-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldclakmal/transport-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldclakmal/transport-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldclakmal/transport-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldclakmal/transport-http/contents/{+path}","compare_url":"https://api.github.com/repos/ldclakmal/transport-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldclakmal/transport-http/merges","archive_url":"https://api.github.com/repos/ldclakmal/transport-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldclakmal/transport-http/downloads","issues_url":"https://api.github.com/repos/ldclakmal/transport-http/issues{/number}","pulls_url":"https://api.github.com/repos/ldclakmal/transport-http/pulls{/number}","milestones_url":"https://api.github.com/repos/ldclakmal/transport-http/milestones{/number}","notifications_url":"https://api.github.com/repos/ldclakmal/transport-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldclakmal/transport-http/labels{/name}","releases_url":"https://api.github.com/repos/ldclakmal/transport-http/releases{/id}","deployments_url":"https://api.github.com/repos/ldclakmal/transport-http/deployments","created_at":"2018-06-22T13:48:11Z","updated_at":"2018-09-12T04:29:09Z","pushed_at":"2018-09-14T09:15:54Z","git_url":"git://github.com/ldclakmal/transport-http.git","ssh_url":"git@github.com:ldclakmal/transport-http.git","clone_url":"https://github.com/ldclakmal/transport-http.git","svn_url":"https://github.com/ldclakmal/transport-http","homepage":null,"size":10305,"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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"95bbabab67dd4501a4def2b1c7d404804568fcd5","user":{"login":"wso2","id":533043,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUzMzA0Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":107353521,"node_id":"MDEwOlJlcG9zaXRvcnkxMDczNTM1MjE=","name":"transport-http","full_name":"wso2/transport-http","owner":{"login":"wso2","id":533043,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUzMzA0Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/transport-http","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/transport-http","forks_url":"https://api.github.com/repos/wso2/transport-http/forks","keys_url":"https://api.github.com/repos/wso2/transport-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/transport-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/transport-http/teams","hooks_url":"https://api.github.com/repos/wso2/transport-http/hooks","issue_events_url":"https://api.github.com/repos/wso2/transport-http/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/transport-http/events","assignees_url":"https://api.github.com/repos/wso2/transport-http/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/transport-http/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/transport-http/tags","blobs_url":"https://api.github.com/repos/wso2/transport-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/transport-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/transport-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/transport-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/transport-http/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/transport-http/languages","stargazers_url":"https://api.github.com/repos/wso2/transport-http/stargazers","contributors_url":"https://api.github.com/repos/wso2/transport-http/contributors","subscribers_url":"https://api.github.com/repos/wso2/transport-http/subscribers","subscription_url":"https://api.github.com/repos/wso2/transport-http/subscription","commits_url":"https://api.github.com/repos/wso2/transport-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/transport-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/transport-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/transport-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/transport-http/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/transport-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/transport-http/merges","archive_url":"https://api.github.com/repos/wso2/transport-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/transport-http/downloads","issues_url":"https://api.github.com/repos/wso2/transport-http/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/transport-http/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/transport-http/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/transport-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/transport-http/labels{/name}","releases_url":"https://api.github.com/repos/wso2/transport-http/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/transport-http/deployments","created_at":"2017-10-18T03:18:32Z","updated_at":"2018-09-13T11:47:34Z","pushed_at":"2018-09-13T17:48:25Z","git_url":"git://github.com/wso2/transport-http.git","ssh_url":"git@github.com:wso2/transport-http.git","clone_url":"https://github.com/wso2/transport-http.git","svn_url":"https://github.com/wso2/transport-http","homepage":null,"size":10365,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":23,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/transport-http/pulls/255"},"html":{"href":"https://github.com/wso2/transport-http/pull/255"},"issue":{"href":"https://api.github.com/repos/wso2/transport-http/issues/255"},"comments":{"href":"https://api.github.com/repos/wso2/transport-http/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/transport-http/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/transport-http/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/transport-http/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/transport-http/statuses/b0524387617bfe536fa3bbe4ff2ceeda11866f5d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":11,"additions":592,"deletions":67,"changed_files":11}}
{"actor":{"display_login":"ldclakmal"}}