{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Hosting/pulls/comments/37696351","id":37696351,"diff_hunk":"@@ -0,0 +1,16 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Net.Http;\n+using System.Threading.Tasks;\n+\n+namespace Microsoft.AspNet.TestHost\n+{\n+    public static class HttpResponseMessageExtensions\n+    {\n+        public static Task PipelineCompleteAsync(this HttpResponseMessage message)","path":"src/Microsoft.AspNet.TestHost/HttpResponseMessageExtensions.cs","position":11,"original_position":11,"commit_id":"17535b8bb96f9937e1e8a6305c9a5c2ea90155df","original_commit_id":"2cd343eeea465c7bc522997b8fdbfec5d3168c5f","user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"body":"I think this is more complicated than we want the test client to be. We want HttpClient to be used like it normally would. If you really need to control the server data structures and flow then you can call TestServer.Invoke directly.","created_at":"2015-08-22T14:54:13Z","updated_at":"2015-08-22T14:54:13Z","html_url":"https://github.com/aspnet/Hosting/pull/335#discussion_r37696351","pull_request_url":"https://api.github.com/repos/aspnet/Hosting/pulls/335","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Hosting/pulls/comments/37696351"},"html":{"href":"https://github.com/aspnet/Hosting/pull/335#discussion_r37696351"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Hosting/pulls/335"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Hosting/pulls/335","id":42949087,"html_url":"https://github.com/aspnet/Hosting/pull/335","diff_url":"https://github.com/aspnet/Hosting/pull/335.diff","patch_url":"https://github.com/aspnet/Hosting/pull/335.patch","issue_url":"https://api.github.com/repos/aspnet/Hosting/issues/335","number":335,"state":"open","locked":false,"title":"Request aborted","user":{"login":"tmds","id":1025424,"avatar_url":"https://avatars.githubusercontent.com/u/1025424?v=3","gravatar_id":"","url":"https://api.github.com/users/tmds","html_url":"https://github.com/tmds","followers_url":"https://api.github.com/users/tmds/followers","following_url":"https://api.github.com/users/tmds/following{/other_user}","gists_url":"https://api.github.com/users/tmds/gists{/gist_id}","starred_url":"https://api.github.com/users/tmds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmds/subscriptions","organizations_url":"https://api.github.com/users/tmds/orgs","repos_url":"https://api.github.com/users/tmds/repos","events_url":"https://api.github.com/users/tmds/events{/privacy}","received_events_url":"https://api.github.com/users/tmds/received_events","type":"User","site_admin":false},"body":"Support RequestAborted (fixes https://github.com/aspnet/Hosting/issues/320)\r\nAdd PipelineCompleteAsync to wait for pipeline operations for a request to complete.\r\n\r\nCode based on 1.0.0-beta6 branch","created_at":"2015-08-20T16:22:10Z","updated_at":"2015-08-22T14:54:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee6936f76dc162e20a8f68eca7deb760f92ca025","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Hosting/pulls/335/commits","review_comments_url":"https://api.github.com/repos/aspnet/Hosting/pulls/335/comments","review_comment_url":"https://api.github.com/repos/aspnet/Hosting/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Hosting/issues/335/comments","statuses_url":"https://api.github.com/repos/aspnet/Hosting/statuses/17535b8bb96f9937e1e8a6305c9a5c2ea90155df","head":{"label":"tmds:request_aborted","ref":"request_aborted","sha":"17535b8bb96f9937e1e8a6305c9a5c2ea90155df","user":{"login":"tmds","id":1025424,"avatar_url":"https://avatars.githubusercontent.com/u/1025424?v=3","gravatar_id":"","url":"https://api.github.com/users/tmds","html_url":"https://github.com/tmds","followers_url":"https://api.github.com/users/tmds/followers","following_url":"https://api.github.com/users/tmds/following{/other_user}","gists_url":"https://api.github.com/users/tmds/gists{/gist_id}","starred_url":"https://api.github.com/users/tmds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmds/subscriptions","organizations_url":"https://api.github.com/users/tmds/orgs","repos_url":"https://api.github.com/users/tmds/repos","events_url":"https://api.github.com/users/tmds/events{/privacy}","received_events_url":"https://api.github.com/users/tmds/received_events","type":"User","site_admin":false},"repo":{"id":40993632,"name":"Hosting","full_name":"tmds/Hosting","owner":{"login":"tmds","id":1025424,"avatar_url":"https://avatars.githubusercontent.com/u/1025424?v=3","gravatar_id":"","url":"https://api.github.com/users/tmds","html_url":"https://github.com/tmds","followers_url":"https://api.github.com/users/tmds/followers","following_url":"https://api.github.com/users/tmds/following{/other_user}","gists_url":"https://api.github.com/users/tmds/gists{/gist_id}","starred_url":"https://api.github.com/users/tmds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmds/subscriptions","organizations_url":"https://api.github.com/users/tmds/orgs","repos_url":"https://api.github.com/users/tmds/repos","events_url":"https://api.github.com/users/tmds/events{/privacy}","received_events_url":"https://api.github.com/users/tmds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmds/Hosting","description":"Code for hosting and starting up an ASP.NET application.","fork":true,"url":"https://api.github.com/repos/tmds/Hosting","forks_url":"https://api.github.com/repos/tmds/Hosting/forks","keys_url":"https://api.github.com/repos/tmds/Hosting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmds/Hosting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmds/Hosting/teams","hooks_url":"https://api.github.com/repos/tmds/Hosting/hooks","issue_events_url":"https://api.github.com/repos/tmds/Hosting/issues/events{/number}","events_url":"https://api.github.com/repos/tmds/Hosting/events","assignees_url":"https://api.github.com/repos/tmds/Hosting/assignees{/user}","branches_url":"https://api.github.com/repos/tmds/Hosting/branches{/branch}","tags_url":"https://api.github.com/repos/tmds/Hosting/tags","blobs_url":"https://api.github.com/repos/tmds/Hosting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmds/Hosting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmds/Hosting/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmds/Hosting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmds/Hosting/statuses/{sha}","languages_url":"https://api.github.com/repos/tmds/Hosting/languages","stargazers_url":"https://api.github.com/repos/tmds/Hosting/stargazers","contributors_url":"https://api.github.com/repos/tmds/Hosting/contributors","subscribers_url":"https://api.github.com/repos/tmds/Hosting/subscribers","subscription_url":"https://api.github.com/repos/tmds/Hosting/subscription","commits_url":"https://api.github.com/repos/tmds/Hosting/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmds/Hosting/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmds/Hosting/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmds/Hosting/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmds/Hosting/contents/{+path}","compare_url":"https://api.github.com/repos/tmds/Hosting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmds/Hosting/merges","archive_url":"https://api.github.com/repos/tmds/Hosting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmds/Hosting/downloads","issues_url":"https://api.github.com/repos/tmds/Hosting/issues{/number}","pulls_url":"https://api.github.com/repos/tmds/Hosting/pulls{/number}","milestones_url":"https://api.github.com/repos/tmds/Hosting/milestones{/number}","notifications_url":"https://api.github.com/repos/tmds/Hosting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmds/Hosting/labels{/name}","releases_url":"https://api.github.com/repos/tmds/Hosting/releases{/id}","created_at":"2015-08-18T19:38:01Z","updated_at":"2015-08-18T19:38:02Z","pushed_at":"2015-08-22T11:45:54Z","git_url":"git://github.com/tmds/Hosting.git","ssh_url":"git@github.com:tmds/Hosting.git","clone_url":"https://github.com/tmds/Hosting.git","svn_url":"https://github.com/tmds/Hosting","homepage":"","size":720,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"b590c0c7a2c91ed545312831d2c4b81a71b07f91","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":16630141,"name":"Hosting","full_name":"aspnet/Hosting","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Hosting","description":"Code for hosting and starting up an ASP.NET application.","fork":false,"url":"https://api.github.com/repos/aspnet/Hosting","forks_url":"https://api.github.com/repos/aspnet/Hosting/forks","keys_url":"https://api.github.com/repos/aspnet/Hosting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Hosting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Hosting/teams","hooks_url":"https://api.github.com/repos/aspnet/Hosting/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Hosting/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Hosting/events","assignees_url":"https://api.github.com/repos/aspnet/Hosting/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Hosting/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Hosting/tags","blobs_url":"https://api.github.com/repos/aspnet/Hosting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Hosting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Hosting/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Hosting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Hosting/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Hosting/languages","stargazers_url":"https://api.github.com/repos/aspnet/Hosting/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Hosting/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Hosting/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Hosting/subscription","commits_url":"https://api.github.com/repos/aspnet/Hosting/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Hosting/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Hosting/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Hosting/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Hosting/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Hosting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Hosting/merges","archive_url":"https://api.github.com/repos/aspnet/Hosting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Hosting/downloads","issues_url":"https://api.github.com/repos/aspnet/Hosting/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Hosting/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Hosting/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Hosting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Hosting/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Hosting/releases{/id}","created_at":"2014-02-07T22:58:12Z","updated_at":"2015-08-17T03:08:12Z","pushed_at":"2015-08-22T11:48:33Z","git_url":"git://github.com/aspnet/Hosting.git","ssh_url":"git@github.com:aspnet/Hosting.git","clone_url":"https://github.com/aspnet/Hosting.git","svn_url":"https://github.com/aspnet/Hosting","homepage":"","size":3622,"stargazers_count":124,"watchers_count":124,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":71,"mirror_url":null,"open_issues_count":39,"forks":71,"open_issues":39,"watchers":124,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Hosting/pulls/335"},"html":{"href":"https://github.com/aspnet/Hosting/pull/335"},"issue":{"href":"https://api.github.com/repos/aspnet/Hosting/issues/335"},"comments":{"href":"https://api.github.com/repos/aspnet/Hosting/issues/335/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Hosting/pulls/335/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Hosting/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Hosting/pulls/335/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Hosting/statuses/17535b8bb96f9937e1e8a6305c9a5c2ea90155df"}}}}