{"action":"created","comment":{"url":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/comments/65567073","id":65567073,"diff_hunk":"@@ -8,26 +8,12 @@\n     HEAD;\n \n     public static HttpVerb convert(String word) {\n-        if (word.equals(\"GET\")) {\n-            return GET;\n-        } else if (word.equals(\"POST\")) {\n-            return POST;\n-        } else if (word.equals(\"PUT\")) {\n-            return PUT;\n-        } else if (word.equals(\"OPTIONS\")) {\n-            return OPTIONS;\n-        } else if (word.equals(\"HEAD\")) {\n-            return HEAD;\n+        HttpVerb[] verbs = HttpVerb.class.getEnumConstants();\n+        for (HttpVerb verb : verbs) {","path":"src/main/java/de/rabea/HttpVerb.java","position":15,"original_position":15,"commit_id":"dcde54462f2ad24e5d65748278a62b42c4691fe0","original_commit_id":"dcde54462f2ad24e5d65748278a62b42c4691fe0","user":{"login":"felipesere","id":1850188,"avatar_url":"https://avatars.githubusercontent.com/u/1850188?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesere","html_url":"https://github.com/felipesere","followers_url":"https://api.github.com/users/felipesere/followers","following_url":"https://api.github.com/users/felipesere/following{/other_user}","gists_url":"https://api.github.com/users/felipesere/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesere/subscriptions","organizations_url":"https://api.github.com/users/felipesere/orgs","repos_url":"https://api.github.com/users/felipesere/repos","events_url":"https://api.github.com/users/felipesere/events{/privacy}","received_events_url":"https://api.github.com/users/felipesere/received_events","type":"User","site_admin":false},"body":"There is a method `HttpVerb.values()` exactly for this case.","created_at":"2016-06-02T15:54:11Z","updated_at":"2016-06-02T15:54:11Z","html_url":"https://github.com/RabeaGleissner/http-server/pull/3#discussion_r65567073","pull_request_url":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/comments/65567073"},"html":{"href":"https://github.com/RabeaGleissner/http-server/pull/3#discussion_r65567073"},"pull_request":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/3","id":72306259,"html_url":"https://github.com/RabeaGleissner/http-server/pull/3","diff_url":"https://github.com/RabeaGleissner/http-server/pull/3.diff","patch_url":"https://github.com/RabeaGleissner/http-server/pull/3.patch","issue_url":"https://api.github.com/repos/RabeaGleissner/http-server/issues/3","number":3,"state":"open","locked":false,"title":"Implements redirect and 418 responses","user":{"login":"RabeaGleissner","id":8995723,"avatar_url":"https://avatars.githubusercontent.com/u/8995723?v=3","gravatar_id":"","url":"https://api.github.com/users/RabeaGleissner","html_url":"https://github.com/RabeaGleissner","followers_url":"https://api.github.com/users/RabeaGleissner/followers","following_url":"https://api.github.com/users/RabeaGleissner/following{/other_user}","gists_url":"https://api.github.com/users/RabeaGleissner/gists{/gist_id}","starred_url":"https://api.github.com/users/RabeaGleissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RabeaGleissner/subscriptions","organizations_url":"https://api.github.com/users/RabeaGleissner/orgs","repos_url":"https://api.github.com/users/RabeaGleissner/repos","events_url":"https://api.github.com/users/RabeaGleissner/events{/privacy}","received_events_url":"https://api.github.com/users/RabeaGleissner/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-02T08:23:01Z","updated_at":"2016-06-02T15:54:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b7409339fde3661e75e729c4cb55f60119f4b03","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/3/commits","review_comments_url":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/3/comments","review_comment_url":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RabeaGleissner/http-server/issues/3/comments","statuses_url":"https://api.github.com/repos/RabeaGleissner/http-server/statuses/dcde54462f2ad24e5d65748278a62b42c4691fe0","head":{"label":"RabeaGleissner:four-eighteen","ref":"four-eighteen","sha":"dcde54462f2ad24e5d65748278a62b42c4691fe0","user":{"login":"RabeaGleissner","id":8995723,"avatar_url":"https://avatars.githubusercontent.com/u/8995723?v=3","gravatar_id":"","url":"https://api.github.com/users/RabeaGleissner","html_url":"https://github.com/RabeaGleissner","followers_url":"https://api.github.com/users/RabeaGleissner/followers","following_url":"https://api.github.com/users/RabeaGleissner/following{/other_user}","gists_url":"https://api.github.com/users/RabeaGleissner/gists{/gist_id}","starred_url":"https://api.github.com/users/RabeaGleissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RabeaGleissner/subscriptions","organizations_url":"https://api.github.com/users/RabeaGleissner/orgs","repos_url":"https://api.github.com/users/RabeaGleissner/repos","events_url":"https://api.github.com/users/RabeaGleissner/events{/privacy}","received_events_url":"https://api.github.com/users/RabeaGleissner/received_events","type":"User","site_admin":false},"repo":{"id":60100608,"name":"http-server","full_name":"RabeaGleissner/http-server","owner":{"login":"RabeaGleissner","id":8995723,"avatar_url":"https://avatars.githubusercontent.com/u/8995723?v=3","gravatar_id":"","url":"https://api.github.com/users/RabeaGleissner","html_url":"https://github.com/RabeaGleissner","followers_url":"https://api.github.com/users/RabeaGleissner/followers","following_url":"https://api.github.com/users/RabeaGleissner/following{/other_user}","gists_url":"https://api.github.com/users/RabeaGleissner/gists{/gist_id}","starred_url":"https://api.github.com/users/RabeaGleissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RabeaGleissner/subscriptions","organizations_url":"https://api.github.com/users/RabeaGleissner/orgs","repos_url":"https://api.github.com/users/RabeaGleissner/repos","events_url":"https://api.github.com/users/RabeaGleissner/events{/privacy}","received_events_url":"https://api.github.com/users/RabeaGleissner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RabeaGleissner/http-server","description":"","fork":false,"url":"https://api.github.com/repos/RabeaGleissner/http-server","forks_url":"https://api.github.com/repos/RabeaGleissner/http-server/forks","keys_url":"https://api.github.com/repos/RabeaGleissner/http-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RabeaGleissner/http-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RabeaGleissner/http-server/teams","hooks_url":"https://api.github.com/repos/RabeaGleissner/http-server/hooks","issue_events_url":"https://api.github.com/repos/RabeaGleissner/http-server/issues/events{/number}","events_url":"https://api.github.com/repos/RabeaGleissner/http-server/events","assignees_url":"https://api.github.com/repos/RabeaGleissner/http-server/assignees{/user}","branches_url":"https://api.github.com/repos/RabeaGleissner/http-server/branches{/branch}","tags_url":"https://api.github.com/repos/RabeaGleissner/http-server/tags","blobs_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RabeaGleissner/http-server/statuses/{sha}","languages_url":"https://api.github.com/repos/RabeaGleissner/http-server/languages","stargazers_url":"https://api.github.com/repos/RabeaGleissner/http-server/stargazers","contributors_url":"https://api.github.com/repos/RabeaGleissner/http-server/contributors","subscribers_url":"https://api.github.com/repos/RabeaGleissner/http-server/subscribers","subscription_url":"https://api.github.com/repos/RabeaGleissner/http-server/subscription","commits_url":"https://api.github.com/repos/RabeaGleissner/http-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/RabeaGleissner/http-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/RabeaGleissner/http-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/RabeaGleissner/http-server/contents/{+path}","compare_url":"https://api.github.com/repos/RabeaGleissner/http-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RabeaGleissner/http-server/merges","archive_url":"https://api.github.com/repos/RabeaGleissner/http-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RabeaGleissner/http-server/downloads","issues_url":"https://api.github.com/repos/RabeaGleissner/http-server/issues{/number}","pulls_url":"https://api.github.com/repos/RabeaGleissner/http-server/pulls{/number}","milestones_url":"https://api.github.com/repos/RabeaGleissner/http-server/milestones{/number}","notifications_url":"https://api.github.com/repos/RabeaGleissner/http-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RabeaGleissner/http-server/labels{/name}","releases_url":"https://api.github.com/repos/RabeaGleissner/http-server/releases{/id}","deployments_url":"https://api.github.com/repos/RabeaGleissner/http-server/deployments","created_at":"2016-05-31T15:18:00Z","updated_at":"2016-05-31T15:18:13Z","pushed_at":"2016-06-02T08:23:01Z","git_url":"git://github.com/RabeaGleissner/http-server.git","ssh_url":"git@github.com:RabeaGleissner/http-server.git","clone_url":"https://github.com/RabeaGleissner/http-server.git","svn_url":"https://github.com/RabeaGleissner/http-server","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"RabeaGleissner:simple-requests","ref":"simple-requests","sha":"5f82878c6ef6ff9b6b198e64ab1891b96017837b","user":{"login":"RabeaGleissner","id":8995723,"avatar_url":"https://avatars.githubusercontent.com/u/8995723?v=3","gravatar_id":"","url":"https://api.github.com/users/RabeaGleissner","html_url":"https://github.com/RabeaGleissner","followers_url":"https://api.github.com/users/RabeaGleissner/followers","following_url":"https://api.github.com/users/RabeaGleissner/following{/other_user}","gists_url":"https://api.github.com/users/RabeaGleissner/gists{/gist_id}","starred_url":"https://api.github.com/users/RabeaGleissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RabeaGleissner/subscriptions","organizations_url":"https://api.github.com/users/RabeaGleissner/orgs","repos_url":"https://api.github.com/users/RabeaGleissner/repos","events_url":"https://api.github.com/users/RabeaGleissner/events{/privacy}","received_events_url":"https://api.github.com/users/RabeaGleissner/received_events","type":"User","site_admin":false},"repo":{"id":60100608,"name":"http-server","full_name":"RabeaGleissner/http-server","owner":{"login":"RabeaGleissner","id":8995723,"avatar_url":"https://avatars.githubusercontent.com/u/8995723?v=3","gravatar_id":"","url":"https://api.github.com/users/RabeaGleissner","html_url":"https://github.com/RabeaGleissner","followers_url":"https://api.github.com/users/RabeaGleissner/followers","following_url":"https://api.github.com/users/RabeaGleissner/following{/other_user}","gists_url":"https://api.github.com/users/RabeaGleissner/gists{/gist_id}","starred_url":"https://api.github.com/users/RabeaGleissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RabeaGleissner/subscriptions","organizations_url":"https://api.github.com/users/RabeaGleissner/orgs","repos_url":"https://api.github.com/users/RabeaGleissner/repos","events_url":"https://api.github.com/users/RabeaGleissner/events{/privacy}","received_events_url":"https://api.github.com/users/RabeaGleissner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RabeaGleissner/http-server","description":"","fork":false,"url":"https://api.github.com/repos/RabeaGleissner/http-server","forks_url":"https://api.github.com/repos/RabeaGleissner/http-server/forks","keys_url":"https://api.github.com/repos/RabeaGleissner/http-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RabeaGleissner/http-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RabeaGleissner/http-server/teams","hooks_url":"https://api.github.com/repos/RabeaGleissner/http-server/hooks","issue_events_url":"https://api.github.com/repos/RabeaGleissner/http-server/issues/events{/number}","events_url":"https://api.github.com/repos/RabeaGleissner/http-server/events","assignees_url":"https://api.github.com/repos/RabeaGleissner/http-server/assignees{/user}","branches_url":"https://api.github.com/repos/RabeaGleissner/http-server/branches{/branch}","tags_url":"https://api.github.com/repos/RabeaGleissner/http-server/tags","blobs_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RabeaGleissner/http-server/statuses/{sha}","languages_url":"https://api.github.com/repos/RabeaGleissner/http-server/languages","stargazers_url":"https://api.github.com/repos/RabeaGleissner/http-server/stargazers","contributors_url":"https://api.github.com/repos/RabeaGleissner/http-server/contributors","subscribers_url":"https://api.github.com/repos/RabeaGleissner/http-server/subscribers","subscription_url":"https://api.github.com/repos/RabeaGleissner/http-server/subscription","commits_url":"https://api.github.com/repos/RabeaGleissner/http-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/RabeaGleissner/http-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/RabeaGleissner/http-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/RabeaGleissner/http-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/RabeaGleissner/http-server/contents/{+path}","compare_url":"https://api.github.com/repos/RabeaGleissner/http-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RabeaGleissner/http-server/merges","archive_url":"https://api.github.com/repos/RabeaGleissner/http-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RabeaGleissner/http-server/downloads","issues_url":"https://api.github.com/repos/RabeaGleissner/http-server/issues{/number}","pulls_url":"https://api.github.com/repos/RabeaGleissner/http-server/pulls{/number}","milestones_url":"https://api.github.com/repos/RabeaGleissner/http-server/milestones{/number}","notifications_url":"https://api.github.com/repos/RabeaGleissner/http-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RabeaGleissner/http-server/labels{/name}","releases_url":"https://api.github.com/repos/RabeaGleissner/http-server/releases{/id}","deployments_url":"https://api.github.com/repos/RabeaGleissner/http-server/deployments","created_at":"2016-05-31T15:18:00Z","updated_at":"2016-05-31T15:18:13Z","pushed_at":"2016-06-02T08:23:01Z","git_url":"git://github.com/RabeaGleissner/http-server.git","ssh_url":"git@github.com:RabeaGleissner/http-server.git","clone_url":"https://github.com/RabeaGleissner/http-server.git","svn_url":"https://github.com/RabeaGleissner/http-server","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/3"},"html":{"href":"https://github.com/RabeaGleissner/http-server/pull/3"},"issue":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/issues/3"},"comments":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/RabeaGleissner/http-server/statuses/dcde54462f2ad24e5d65748278a62b42c4691fe0"}}}}
{"actor":{"display_login":"felipesere"}}