{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/comments/193243136","pull_request_review_id":126177354,"id":193243136,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzI0MzEzNg==","diff_hunk":"@@ -46,22 +52,11 @@\n     T getBody();\n \n     /**\n-     * Generates a {@link HttpResponseMessage} instance containing the given HTTP status code and no response body.\n-     * Additional headers may be added by calling appropriate methods on {@link HttpResponseMessage}.\n+     * Returns a {@link HttpResponseMessage.Builder} instance to build a HTTP status code and no response body.\n      *\n      * @param status The HTTP status code to return to the caller of the function.\n-     * @return An {@link HttpResponseMessage} instance containing the provided status and empty body.\n+     * @return An {@link HttpResponseMessage.Builder} instance containing the provided status and empty body.\n      */\n-    HttpResponseMessage<Object> createResponse(int status);\n+    HttpResponseMessage.Builder<Object> createResponseBuilder(HttpStatus status);\n \n-    /**\n-     * Generates a {@link HttpResponseMessage} instance containing the given HTTP status code and response body.\n-     * Additional headers may be added by calling appropriate methods on {@link HttpResponseMessage}.\n-     *\n-     * @param status The HTTP status code to return to the caller of the function.\n-     * @param body The body content to return to the caller of the function.\n-     * @param <R> The type of the body, as determined by the return type specified on the function itself.\n-     * @return An {@link HttpResponseMessage} instance containing the provided status and body content.\n-     */\n-    <R> HttpResponseMessage<R> createResponse(int status, R body);","path":"src/main/java/com/microsoft/azure/functions/HttpRequestMessage.java","position":48,"original_position":48,"commit_id":"ef12343d4cbd00be38ef6028083f344a02c72511","original_commit_id":"ef12343d4cbd00be38ef6028083f344a02c72511","user":{"login":"JunyiYi","id":6908392,"node_id":"MDQ6VXNlcjY5MDgzOTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6908392?v=4","gravatar_id":"","url":"https://api.github.com/users/JunyiYi","html_url":"https://github.com/JunyiYi","followers_url":"https://api.github.com/users/JunyiYi/followers","following_url":"https://api.github.com/users/JunyiYi/following{/other_user}","gists_url":"https://api.github.com/users/JunyiYi/gists{/gist_id}","starred_url":"https://api.github.com/users/JunyiYi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JunyiYi/subscriptions","organizations_url":"https://api.github.com/users/JunyiYi/orgs","repos_url":"https://api.github.com/users/JunyiYi/repos","events_url":"https://api.github.com/users/JunyiYi/events{/privacy}","received_events_url":"https://api.github.com/users/JunyiYi/received_events","type":"User","site_admin":false},"body":"Can we also add a strongly typed method `<R> HttpResponseMessage.Builder<R> createResponseBuilder(HttpStatus status, R body); `?\r\n\r\nThe method you've added (`HttpResponseMessage.Builder<Object> createResponseBuilder(HttpStatus status); `) is just a convenient method without `body`.","created_at":"2018-06-05T22:35:34Z","updated_at":"2018-06-05T22:39:10Z","html_url":"https://github.com/Azure/azure-functions-java-library/pull/12#discussion_r193243136","pull_request_url":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/12","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/comments/193243136"},"html":{"href":"https://github.com/Azure/azure-functions-java-library/pull/12#discussion_r193243136"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/12","id":191382349,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxMzgyMzQ5","html_url":"https://github.com/Azure/azure-functions-java-library/pull/12","diff_url":"https://github.com/Azure/azure-functions-java-library/pull/12.diff","patch_url":"https://github.com/Azure/azure-functions-java-library/pull/12.patch","issue_url":"https://api.github.com/repos/Azure/azure-functions-java-library/issues/12","number":12,"state":"open","locked":false,"title":"Add HttpMethod enum and return HttpResponseMessage for fluent API","user":{"login":"brunoborges","id":129743,"node_id":"MDQ6VXNlcjEyOTc0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/129743?v=4","gravatar_id":"","url":"https://api.github.com/users/brunoborges","html_url":"https://github.com/brunoborges","followers_url":"https://api.github.com/users/brunoborges/followers","following_url":"https://api.github.com/users/brunoborges/following{/other_user}","gists_url":"https://api.github.com/users/brunoborges/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoborges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoborges/subscriptions","organizations_url":"https://api.github.com/users/brunoborges/orgs","repos_url":"https://api.github.com/users/brunoborges/repos","events_url":"https://api.github.com/users/brunoborges/events{/privacy}","received_events_url":"https://api.github.com/users/brunoborges/received_events","type":"User","site_admin":false},"body":"Add HttpMethod enum to avoid String comparison and issues with string case.\r\n\r\nReturn the HttpResponseMessage object on setStatus, addHeader, and setBody methods to allow for fluent object construction.\r\n\r\nSigned-off-by: Bruno Borges <bruno.borges@microsoft.com>","created_at":"2018-05-30T09:07:02Z","updated_at":"2018-06-05T22:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3fc508c4e3d029751d976613e25803c95527765","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/12/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/12/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-functions-java-library/issues/12/comments","statuses_url":"https://api.github.com/repos/Azure/azure-functions-java-library/statuses/ef12343d4cbd00be38ef6028083f344a02c72511","head":{"label":"brunoborges:dev","ref":"dev","sha":"ef12343d4cbd00be38ef6028083f344a02c72511","user":{"login":"brunoborges","id":129743,"node_id":"MDQ6VXNlcjEyOTc0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/129743?v=4","gravatar_id":"","url":"https://api.github.com/users/brunoborges","html_url":"https://github.com/brunoborges","followers_url":"https://api.github.com/users/brunoborges/followers","following_url":"https://api.github.com/users/brunoborges/following{/other_user}","gists_url":"https://api.github.com/users/brunoborges/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoborges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoborges/subscriptions","organizations_url":"https://api.github.com/users/brunoborges/orgs","repos_url":"https://api.github.com/users/brunoborges/repos","events_url":"https://api.github.com/users/brunoborges/events{/privacy}","received_events_url":"https://api.github.com/users/brunoborges/received_events","type":"User","site_admin":false},"repo":{"id":135416753,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU0MTY3NTM=","name":"azure-functions-java-library","full_name":"brunoborges/azure-functions-java-library","owner":{"login":"brunoborges","id":129743,"node_id":"MDQ6VXNlcjEyOTc0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/129743?v=4","gravatar_id":"","url":"https://api.github.com/users/brunoborges","html_url":"https://github.com/brunoborges","followers_url":"https://api.github.com/users/brunoborges/followers","following_url":"https://api.github.com/users/brunoborges/following{/other_user}","gists_url":"https://api.github.com/users/brunoborges/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoborges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoborges/subscriptions","organizations_url":"https://api.github.com/users/brunoborges/orgs","repos_url":"https://api.github.com/users/brunoborges/repos","events_url":"https://api.github.com/users/brunoborges/events{/privacy}","received_events_url":"https://api.github.com/users/brunoborges/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunoborges/azure-functions-java-library","description":"Contains annotations for writing Azure Functions in Java","fork":true,"url":"https://api.github.com/repos/brunoborges/azure-functions-java-library","forks_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/forks","keys_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/teams","hooks_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/hooks","issue_events_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/issues/events{/number}","events_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/events","assignees_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/assignees{/user}","branches_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/branches{/branch}","tags_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/tags","blobs_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/statuses/{sha}","languages_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/languages","stargazers_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/stargazers","contributors_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/contributors","subscribers_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/subscribers","subscription_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/subscription","commits_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/contents/{+path}","compare_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/merges","archive_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/downloads","issues_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/issues{/number}","pulls_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/pulls{/number}","milestones_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/milestones{/number}","notifications_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/labels{/name}","releases_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/releases{/id}","deployments_url":"https://api.github.com/repos/brunoborges/azure-functions-java-library/deployments","created_at":"2018-05-30T09:02:31Z","updated_at":"2018-06-05T07:12:58Z","pushed_at":"2018-06-05T07:14:00Z","git_url":"git://github.com/brunoborges/azure-functions-java-library.git","ssh_url":"git@github.com:brunoborges/azure-functions-java-library.git","clone_url":"https://github.com/brunoborges/azure-functions-java-library.git","svn_url":"https://github.com/brunoborges/azure-functions-java-library","homepage":null,"size":50,"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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"81206a2ef5861e849b9adaf7e5681a97800f9ee6","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":133424582,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM0MjQ1ODI=","name":"azure-functions-java-library","full_name":"Azure/azure-functions-java-library","owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-functions-java-library","description":"Contains annotations for writing Azure Functions in Java","fork":false,"url":"https://api.github.com/repos/Azure/azure-functions-java-library","forks_url":"https://api.github.com/repos/Azure/azure-functions-java-library/forks","keys_url":"https://api.github.com/repos/Azure/azure-functions-java-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-functions-java-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-functions-java-library/teams","hooks_url":"https://api.github.com/repos/Azure/azure-functions-java-library/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-functions-java-library/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-functions-java-library/events","assignees_url":"https://api.github.com/repos/Azure/azure-functions-java-library/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-functions-java-library/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-functions-java-library/tags","blobs_url":"https://api.github.com/repos/Azure/azure-functions-java-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-functions-java-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-functions-java-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-functions-java-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-functions-java-library/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-functions-java-library/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-functions-java-library/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-functions-java-library/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-functions-java-library/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-functions-java-library/subscription","commits_url":"https://api.github.com/repos/Azure/azure-functions-java-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-functions-java-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-functions-java-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-functions-java-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-functions-java-library/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-functions-java-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-functions-java-library/merges","archive_url":"https://api.github.com/repos/Azure/azure-functions-java-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-functions-java-library/downloads","issues_url":"https://api.github.com/repos/Azure/azure-functions-java-library/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-functions-java-library/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-functions-java-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-functions-java-library/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-functions-java-library/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-functions-java-library/deployments","created_at":"2018-05-14T21:39:07Z","updated_at":"2018-05-29T17:47:23Z","pushed_at":"2018-06-05T07:16:55Z","git_url":"git://github.com/Azure/azure-functions-java-library.git","ssh_url":"git@github.com:Azure/azure-functions-java-library.git","clone_url":"https://github.com/Azure/azure-functions-java-library.git","svn_url":"https://github.com/Azure/azure-functions-java-library","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/12"},"html":{"href":"https://github.com/Azure/azure-functions-java-library/pull/12"},"issue":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/issues/12"},"comments":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-functions-java-library/statuses/ef12343d4cbd00be38ef6028083f344a02c72511"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"JunyiYi"}}