{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls/11","id":50627075,"html_url":"https://github.com/darrylwhitmore/NScrape/pull/11","diff_url":"https://github.com/darrylwhitmore/NScrape/pull/11.diff","patch_url":"https://github.com/darrylwhitmore/NScrape/pull/11.patch","issue_url":"https://api.github.com/repos/darrylwhitmore/NScrape/issues/11","number":11,"state":"open","locked":false,"title":"Add a ResponseReceived event to the WebClient class","user":{"login":"qmfrederik","id":9918129,"avatar_url":"https://avatars.githubusercontent.com/u/9918129?v=3","gravatar_id":"","url":"https://api.github.com/users/qmfrederik","html_url":"https://github.com/qmfrederik","followers_url":"https://api.github.com/users/qmfrederik/followers","following_url":"https://api.github.com/users/qmfrederik/following{/other_user}","gists_url":"https://api.github.com/users/qmfrederik/gists{/gist_id}","starred_url":"https://api.github.com/users/qmfrederik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qmfrederik/subscriptions","organizations_url":"https://api.github.com/users/qmfrederik/orgs","repos_url":"https://api.github.com/users/qmfrederik/repos","events_url":"https://api.github.com/users/qmfrederik/events{/privacy}","received_events_url":"https://api.github.com/users/qmfrederik/received_events","type":"User","site_admin":false},"body":"Hi Darryl,\r\n\r\nI ended up in a situation where I had to parse the headers that were sent on a specific response, and add them to a subsequent request.\r\n\r\nNScrape didn't give me access to the `HttpWebResponse` that was received, so I added a `ResponseReceived` event to the `WebClient` class. I can now subscribe to that event and manually extract the headers.\r\n\r\nThis pull request contains that change, plus a removal of the interpolated strings (they now cause a compiler error as the project compatibility has been set to C# 5) and a fix in the `WebResponseFactory` where a field would be initialized too late.\r\n\r\nHope it helps,\r\n\r\nFrederik.","created_at":"2015-11-13T10:46:43Z","updated_at":"2015-11-13T10:46:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls/11/commits","review_comments_url":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls/11/comments","review_comment_url":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls/comments{/number}","comments_url":"https://api.github.com/repos/darrylwhitmore/NScrape/issues/11/comments","statuses_url":"https://api.github.com/repos/darrylwhitmore/NScrape/statuses/c2065e288b3d64cac3e1999974613a9e8621f79b","head":{"label":"quamotion:features/intercept-webresponse","ref":"features/intercept-webresponse","sha":"c2065e288b3d64cac3e1999974613a9e8621f79b","user":{"login":"quamotion","id":9918157,"avatar_url":"https://avatars.githubusercontent.com/u/9918157?v=3","gravatar_id":"","url":"https://api.github.com/users/quamotion","html_url":"https://github.com/quamotion","followers_url":"https://api.github.com/users/quamotion/followers","following_url":"https://api.github.com/users/quamotion/following{/other_user}","gists_url":"https://api.github.com/users/quamotion/gists{/gist_id}","starred_url":"https://api.github.com/users/quamotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quamotion/subscriptions","organizations_url":"https://api.github.com/users/quamotion/orgs","repos_url":"https://api.github.com/users/quamotion/repos","events_url":"https://api.github.com/users/quamotion/events{/privacy}","received_events_url":"https://api.github.com/users/quamotion/received_events","type":"Organization","site_admin":false},"repo":{"id":45034566,"name":"NScrape","full_name":"quamotion/NScrape","owner":{"login":"quamotion","id":9918157,"avatar_url":"https://avatars.githubusercontent.com/u/9918157?v=3","gravatar_id":"","url":"https://api.github.com/users/quamotion","html_url":"https://github.com/quamotion","followers_url":"https://api.github.com/users/quamotion/followers","following_url":"https://api.github.com/users/quamotion/following{/other_user}","gists_url":"https://api.github.com/users/quamotion/gists{/gist_id}","starred_url":"https://api.github.com/users/quamotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quamotion/subscriptions","organizations_url":"https://api.github.com/users/quamotion/orgs","repos_url":"https://api.github.com/users/quamotion/repos","events_url":"https://api.github.com/users/quamotion/events{/privacy}","received_events_url":"https://api.github.com/users/quamotion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quamotion/NScrape","description":"A web scraping framework for .Net","fork":true,"url":"https://api.github.com/repos/quamotion/NScrape","forks_url":"https://api.github.com/repos/quamotion/NScrape/forks","keys_url":"https://api.github.com/repos/quamotion/NScrape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quamotion/NScrape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quamotion/NScrape/teams","hooks_url":"https://api.github.com/repos/quamotion/NScrape/hooks","issue_events_url":"https://api.github.com/repos/quamotion/NScrape/issues/events{/number}","events_url":"https://api.github.com/repos/quamotion/NScrape/events","assignees_url":"https://api.github.com/repos/quamotion/NScrape/assignees{/user}","branches_url":"https://api.github.com/repos/quamotion/NScrape/branches{/branch}","tags_url":"https://api.github.com/repos/quamotion/NScrape/tags","blobs_url":"https://api.github.com/repos/quamotion/NScrape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quamotion/NScrape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quamotion/NScrape/git/refs{/sha}","trees_url":"https://api.github.com/repos/quamotion/NScrape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quamotion/NScrape/statuses/{sha}","languages_url":"https://api.github.com/repos/quamotion/NScrape/languages","stargazers_url":"https://api.github.com/repos/quamotion/NScrape/stargazers","contributors_url":"https://api.github.com/repos/quamotion/NScrape/contributors","subscribers_url":"https://api.github.com/repos/quamotion/NScrape/subscribers","subscription_url":"https://api.github.com/repos/quamotion/NScrape/subscription","commits_url":"https://api.github.com/repos/quamotion/NScrape/commits{/sha}","git_commits_url":"https://api.github.com/repos/quamotion/NScrape/git/commits{/sha}","comments_url":"https://api.github.com/repos/quamotion/NScrape/comments{/number}","issue_comment_url":"https://api.github.com/repos/quamotion/NScrape/issues/comments{/number}","contents_url":"https://api.github.com/repos/quamotion/NScrape/contents/{+path}","compare_url":"https://api.github.com/repos/quamotion/NScrape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quamotion/NScrape/merges","archive_url":"https://api.github.com/repos/quamotion/NScrape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quamotion/NScrape/downloads","issues_url":"https://api.github.com/repos/quamotion/NScrape/issues{/number}","pulls_url":"https://api.github.com/repos/quamotion/NScrape/pulls{/number}","milestones_url":"https://api.github.com/repos/quamotion/NScrape/milestones{/number}","notifications_url":"https://api.github.com/repos/quamotion/NScrape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quamotion/NScrape/labels{/name}","releases_url":"https://api.github.com/repos/quamotion/NScrape/releases{/id}","created_at":"2015-10-27T10:51:04Z","updated_at":"2015-10-27T10:51:05Z","pushed_at":"2015-11-13T10:43:32Z","git_url":"git://github.com/quamotion/NScrape.git","ssh_url":"git@github.com:quamotion/NScrape.git","clone_url":"https://github.com/quamotion/NScrape.git","svn_url":"https://github.com/quamotion/NScrape","homepage":null,"size":547,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"master"}},"base":{"label":"darrylwhitmore:master","ref":"master","sha":"9dbd73bba85cfc3ff4aa5bcc1b5f555eab416ba4","user":{"login":"darrylwhitmore","id":1014874,"avatar_url":"https://avatars.githubusercontent.com/u/1014874?v=3","gravatar_id":"","url":"https://api.github.com/users/darrylwhitmore","html_url":"https://github.com/darrylwhitmore","followers_url":"https://api.github.com/users/darrylwhitmore/followers","following_url":"https://api.github.com/users/darrylwhitmore/following{/other_user}","gists_url":"https://api.github.com/users/darrylwhitmore/gists{/gist_id}","starred_url":"https://api.github.com/users/darrylwhitmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrylwhitmore/subscriptions","organizations_url":"https://api.github.com/users/darrylwhitmore/orgs","repos_url":"https://api.github.com/users/darrylwhitmore/repos","events_url":"https://api.github.com/users/darrylwhitmore/events{/privacy}","received_events_url":"https://api.github.com/users/darrylwhitmore/received_events","type":"User","site_admin":false},"repo":{"id":26369221,"name":"NScrape","full_name":"darrylwhitmore/NScrape","owner":{"login":"darrylwhitmore","id":1014874,"avatar_url":"https://avatars.githubusercontent.com/u/1014874?v=3","gravatar_id":"","url":"https://api.github.com/users/darrylwhitmore","html_url":"https://github.com/darrylwhitmore","followers_url":"https://api.github.com/users/darrylwhitmore/followers","following_url":"https://api.github.com/users/darrylwhitmore/following{/other_user}","gists_url":"https://api.github.com/users/darrylwhitmore/gists{/gist_id}","starred_url":"https://api.github.com/users/darrylwhitmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrylwhitmore/subscriptions","organizations_url":"https://api.github.com/users/darrylwhitmore/orgs","repos_url":"https://api.github.com/users/darrylwhitmore/repos","events_url":"https://api.github.com/users/darrylwhitmore/events{/privacy}","received_events_url":"https://api.github.com/users/darrylwhitmore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/darrylwhitmore/NScrape","description":"A web scraping framework for .Net","fork":false,"url":"https://api.github.com/repos/darrylwhitmore/NScrape","forks_url":"https://api.github.com/repos/darrylwhitmore/NScrape/forks","keys_url":"https://api.github.com/repos/darrylwhitmore/NScrape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/darrylwhitmore/NScrape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/darrylwhitmore/NScrape/teams","hooks_url":"https://api.github.com/repos/darrylwhitmore/NScrape/hooks","issue_events_url":"https://api.github.com/repos/darrylwhitmore/NScrape/issues/events{/number}","events_url":"https://api.github.com/repos/darrylwhitmore/NScrape/events","assignees_url":"https://api.github.com/repos/darrylwhitmore/NScrape/assignees{/user}","branches_url":"https://api.github.com/repos/darrylwhitmore/NScrape/branches{/branch}","tags_url":"https://api.github.com/repos/darrylwhitmore/NScrape/tags","blobs_url":"https://api.github.com/repos/darrylwhitmore/NScrape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/darrylwhitmore/NScrape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/darrylwhitmore/NScrape/git/refs{/sha}","trees_url":"https://api.github.com/repos/darrylwhitmore/NScrape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/darrylwhitmore/NScrape/statuses/{sha}","languages_url":"https://api.github.com/repos/darrylwhitmore/NScrape/languages","stargazers_url":"https://api.github.com/repos/darrylwhitmore/NScrape/stargazers","contributors_url":"https://api.github.com/repos/darrylwhitmore/NScrape/contributors","subscribers_url":"https://api.github.com/repos/darrylwhitmore/NScrape/subscribers","subscription_url":"https://api.github.com/repos/darrylwhitmore/NScrape/subscription","commits_url":"https://api.github.com/repos/darrylwhitmore/NScrape/commits{/sha}","git_commits_url":"https://api.github.com/repos/darrylwhitmore/NScrape/git/commits{/sha}","comments_url":"https://api.github.com/repos/darrylwhitmore/NScrape/comments{/number}","issue_comment_url":"https://api.github.com/repos/darrylwhitmore/NScrape/issues/comments{/number}","contents_url":"https://api.github.com/repos/darrylwhitmore/NScrape/contents/{+path}","compare_url":"https://api.github.com/repos/darrylwhitmore/NScrape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/darrylwhitmore/NScrape/merges","archive_url":"https://api.github.com/repos/darrylwhitmore/NScrape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/darrylwhitmore/NScrape/downloads","issues_url":"https://api.github.com/repos/darrylwhitmore/NScrape/issues{/number}","pulls_url":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls{/number}","milestones_url":"https://api.github.com/repos/darrylwhitmore/NScrape/milestones{/number}","notifications_url":"https://api.github.com/repos/darrylwhitmore/NScrape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/darrylwhitmore/NScrape/labels{/name}","releases_url":"https://api.github.com/repos/darrylwhitmore/NScrape/releases{/id}","created_at":"2014-11-08T18:00:40Z","updated_at":"2015-10-27T05:43:07Z","pushed_at":"2015-11-13T10:46:43Z","git_url":"git://github.com/darrylwhitmore/NScrape.git","ssh_url":"git@github.com:darrylwhitmore/NScrape.git","clone_url":"https://github.com/darrylwhitmore/NScrape.git","svn_url":"https://github.com/darrylwhitmore/NScrape","homepage":null,"size":595,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls/11"},"html":{"href":"https://github.com/darrylwhitmore/NScrape/pull/11"},"issue":{"href":"https://api.github.com/repos/darrylwhitmore/NScrape/issues/11"},"comments":{"href":"https://api.github.com/repos/darrylwhitmore/NScrape/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/darrylwhitmore/NScrape/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/darrylwhitmore/NScrape/statuses/c2065e288b3d64cac3e1999974613a9e8621f79b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":62,"deletions":6,"changed_files":9}}