{"action":"opened","number":29,"pull_request":{"url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls/29","id":29327933,"html_url":"https://github.com/ForceUniverse/dart-forcemvc/pull/29","diff_url":"https://github.com/ForceUniverse/dart-forcemvc/pull/29.diff","patch_url":"https://github.com/ForceUniverse/dart-forcemvc/pull/29.patch","issue_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/issues/29","number":29,"state":"open","locked":false,"title":"Allow completely handling the HttpResponse","user":{"login":"nicolasgarnier","id":3766663,"avatar_url":"https://avatars.githubusercontent.com/u/3766663?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasgarnier","html_url":"https://github.com/nicolasgarnier","followers_url":"https://api.github.com/users/nicolasgarnier/followers","following_url":"https://api.github.com/users/nicolasgarnier/following{/other_user}","gists_url":"https://api.github.com/users/nicolasgarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasgarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasgarnier/subscriptions","organizations_url":"https://api.github.com/users/nicolasgarnier/orgs","repos_url":"https://api.github.com/users/nicolasgarnier/repos","events_url":"https://api.github.com/users/nicolasgarnier/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasgarnier/received_events","type":"User","site_admin":false},"body":"This adds a mode where the developer can entirely manually handle the HttpResponse. This is activated by returning the HttpResponse on the @RequestMapping function.\r\n\r\nCurrently it was not possible to directly write to the HttpResponse (`req.request.response`) because the framework was always trying to change headers/write on it.\r\n\r\nAlternatively we could detect if the the HttpResponse has already been processed/closed by catching exception when the framework tries to write to the HTTP headers in `_send_response` and, in this case, not write to the body.\r\n\r\nPFYI: I need this for a Dart sample I'm writing that will go on the Google Cloud documentation. I'm writing a small JSON API with ForceMVC.","created_at":"2015-02-15T00:37:20Z","updated_at":"2015-02-15T00:37:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls/29/commits","review_comments_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls/29/comments","review_comment_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/issues/29/comments","statuses_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/statuses/7f45fe6af63989db2bcc05e803f31c6462dfceed","head":{"label":"nicolasgarnier:patch-1","ref":"patch-1","sha":"7f45fe6af63989db2bcc05e803f31c6462dfceed","user":{"login":"nicolasgarnier","id":3766663,"avatar_url":"https://avatars.githubusercontent.com/u/3766663?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasgarnier","html_url":"https://github.com/nicolasgarnier","followers_url":"https://api.github.com/users/nicolasgarnier/followers","following_url":"https://api.github.com/users/nicolasgarnier/following{/other_user}","gists_url":"https://api.github.com/users/nicolasgarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasgarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasgarnier/subscriptions","organizations_url":"https://api.github.com/users/nicolasgarnier/orgs","repos_url":"https://api.github.com/users/nicolasgarnier/repos","events_url":"https://api.github.com/users/nicolasgarnier/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasgarnier/received_events","type":"User","site_admin":false},"repo":{"id":30812013,"name":"dart-forcemvc","full_name":"nicolasgarnier/dart-forcemvc","owner":{"login":"nicolasgarnier","id":3766663,"avatar_url":"https://avatars.githubusercontent.com/u/3766663?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasgarnier","html_url":"https://github.com/nicolasgarnier","followers_url":"https://api.github.com/users/nicolasgarnier/followers","following_url":"https://api.github.com/users/nicolasgarnier/following{/other_user}","gists_url":"https://api.github.com/users/nicolasgarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasgarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasgarnier/subscriptions","organizations_url":"https://api.github.com/users/nicolasgarnier/orgs","repos_url":"https://api.github.com/users/nicolasgarnier/repos","events_url":"https://api.github.com/users/nicolasgarnier/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasgarnier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicolasgarnier/dart-forcemvc","description":"A serverside MVC framework for Dart","fork":true,"url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc","forks_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/forks","keys_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/teams","hooks_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/hooks","issue_events_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/issues/events{/number}","events_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/events","assignees_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/assignees{/user}","branches_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/branches{/branch}","tags_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/tags","blobs_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/statuses/{sha}","languages_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/languages","stargazers_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/stargazers","contributors_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/contributors","subscribers_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/subscribers","subscription_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/subscription","commits_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/issues/comments/{number}","contents_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/contents/{+path}","compare_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/merges","archive_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/downloads","issues_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/issues{/number}","pulls_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/pulls{/number}","milestones_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/milestones{/number}","notifications_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/labels{/name}","releases_url":"https://api.github.com/repos/nicolasgarnier/dart-forcemvc/releases{/id}","created_at":"2015-02-14T23:24:09Z","updated_at":"2015-02-14T23:24:10Z","pushed_at":"2015-02-14T23:34:57Z","git_url":"git://github.com/nicolasgarnier/dart-forcemvc.git","ssh_url":"git@github.com:nicolasgarnier/dart-forcemvc.git","clone_url":"https://github.com/nicolasgarnier/dart-forcemvc.git","svn_url":"https://github.com/nicolasgarnier/dart-forcemvc","homepage":null,"size":3092,"stargazers_count":0,"watchers_count":0,"language":"Dart","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ForceUniverse:master","ref":"master","sha":"cb9ba606deb381a8a9d659ff64ebc3dacadc1d09","user":{"login":"ForceUniverse","id":8459095,"avatar_url":"https://avatars.githubusercontent.com/u/8459095?v=3","gravatar_id":"","url":"https://api.github.com/users/ForceUniverse","html_url":"https://github.com/ForceUniverse","followers_url":"https://api.github.com/users/ForceUniverse/followers","following_url":"https://api.github.com/users/ForceUniverse/following{/other_user}","gists_url":"https://api.github.com/users/ForceUniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/ForceUniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForceUniverse/subscriptions","organizations_url":"https://api.github.com/users/ForceUniverse/orgs","repos_url":"https://api.github.com/users/ForceUniverse/repos","events_url":"https://api.github.com/users/ForceUniverse/events{/privacy}","received_events_url":"https://api.github.com/users/ForceUniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":15965657,"name":"dart-forcemvc","full_name":"ForceUniverse/dart-forcemvc","owner":{"login":"ForceUniverse","id":8459095,"avatar_url":"https://avatars.githubusercontent.com/u/8459095?v=3","gravatar_id":"","url":"https://api.github.com/users/ForceUniverse","html_url":"https://github.com/ForceUniverse","followers_url":"https://api.github.com/users/ForceUniverse/followers","following_url":"https://api.github.com/users/ForceUniverse/following{/other_user}","gists_url":"https://api.github.com/users/ForceUniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/ForceUniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForceUniverse/subscriptions","organizations_url":"https://api.github.com/users/ForceUniverse/orgs","repos_url":"https://api.github.com/users/ForceUniverse/repos","events_url":"https://api.github.com/users/ForceUniverse/events{/privacy}","received_events_url":"https://api.github.com/users/ForceUniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ForceUniverse/dart-forcemvc","description":"A serverside MVC framework for Dart","fork":false,"url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc","forks_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/forks","keys_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/teams","hooks_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/hooks","issue_events_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/issues/events{/number}","events_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/events","assignees_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/assignees{/user}","branches_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/branches{/branch}","tags_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/tags","blobs_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/statuses/{sha}","languages_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/languages","stargazers_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/stargazers","contributors_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/contributors","subscribers_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/subscribers","subscription_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/subscription","commits_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/issues/comments/{number}","contents_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/contents/{+path}","compare_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/merges","archive_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/downloads","issues_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/issues{/number}","pulls_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls{/number}","milestones_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/milestones{/number}","notifications_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/labels{/name}","releases_url":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/releases{/id}","created_at":"2014-01-16T11:09:44Z","updated_at":"2015-01-28T22:30:58Z","pushed_at":"2015-01-24T17:38:44Z","git_url":"git://github.com/ForceUniverse/dart-forcemvc.git","ssh_url":"git@github.com:ForceUniverse/dart-forcemvc.git","clone_url":"https://github.com/ForceUniverse/dart-forcemvc.git","svn_url":"https://github.com/ForceUniverse/dart-forcemvc","homepage":null,"size":4660,"stargazers_count":38,"watchers_count":38,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls/29"},"html":{"href":"https://github.com/ForceUniverse/dart-forcemvc/pull/29"},"issue":{"href":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/issues/29"},"comments":{"href":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/ForceUniverse/dart-forcemvc/statuses/7f45fe6af63989db2bcc05e803f31c6462dfceed"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":2,"deletions":2,"changed_files":1}}