{"action":"created","comment":{"url":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/comments/71864834","id":71864834,"diff_hunk":"@@ -136,6 +136,56 @@ def __repr__(self):\n         )\n \n \n+class HeadersSent(object):\n+    \"\"\"\n+    The HeadersSent event is fired whenever headers are received.  This event\n+    carries the HTTP headers and the stream ID of the new stream.\n+\n+    This is an internal event, used to distinguish between headers\n+    and trailers.\n+\n+    .. versionadded:: 2.5.0","path":"h2/events.py","position":12,"original_position":12,"commit_id":"06391cfa1b03a9f9748156386f5c6856e6974ae5","original_commit_id":"06391cfa1b03a9f9748156386f5c6856e6974ae5","user":{"login":"Lukasa","id":1382556,"avatar_url":"https://avatars.githubusercontent.com/u/1382556?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukasa","html_url":"https://github.com/Lukasa","followers_url":"https://api.github.com/users/Lukasa/followers","following_url":"https://api.github.com/users/Lukasa/following{/other_user}","gists_url":"https://api.github.com/users/Lukasa/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukasa/subscriptions","organizations_url":"https://api.github.com/users/Lukasa/orgs","repos_url":"https://api.github.com/users/Lukasa/repos","events_url":"https://api.github.com/users/Lukasa/events{/privacy}","received_events_url":"https://api.github.com/users/Lukasa/received_events","type":"User","site_admin":false},"body":"Indeed, it's at real risk of being wrong as I may well backport this change.","created_at":"2016-07-22T11:30:00Z","updated_at":"2016-07-22T11:30:00Z","html_url":"https://github.com/python-hyper/hyper-h2/pull/261#discussion_r71864834","pull_request_url":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/261","_links":{"self":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/comments/71864834"},"html":{"href":"https://github.com/python-hyper/hyper-h2/pull/261#discussion_r71864834"},"pull_request":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/261"}}},"pull_request":{"url":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/261","id":78138152,"html_url":"https://github.com/python-hyper/hyper-h2/pull/261","diff_url":"https://github.com/python-hyper/hyper-h2/pull/261.diff","patch_url":"https://github.com/python-hyper/hyper-h2/pull/261.patch","issue_url":"https://api.github.com/repos/python-hyper/hyper-h2/issues/261","number":261,"state":"open","locked":false,"title":"[WIP] Reject sent header blocks with bad :authority/Host headers","user":{"login":"alexwlchan","id":301220,"avatar_url":"https://avatars.githubusercontent.com/u/301220?v=3","gravatar_id":"","url":"https://api.github.com/users/alexwlchan","html_url":"https://github.com/alexwlchan","followers_url":"https://api.github.com/users/alexwlchan/followers","following_url":"https://api.github.com/users/alexwlchan/following{/other_user}","gists_url":"https://api.github.com/users/alexwlchan/gists{/gist_id}","starred_url":"https://api.github.com/users/alexwlchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexwlchan/subscriptions","organizations_url":"https://api.github.com/users/alexwlchan/orgs","repos_url":"https://api.github.com/users/alexwlchan/repos","events_url":"https://api.github.com/users/alexwlchan/events{/privacy}","received_events_url":"https://api.github.com/users/alexwlchan/received_events","type":"User","site_admin":false},"body":"Quick something I cooked up in my lunch break.\r\n\r\nThis continues the work started in #252. Intention is that if the user tries to send :authority or Host headers that don't conform, we should raise an `InvalidHeaderBlock` exception.\r\n\r\nFor now, I've just refactored the existing send_headers pipeline into `utilities.py`, ready to add the new logic. I'll look at the rest of it this evening/tomorrow.","created_at":"2016-07-20T12:29:38Z","updated_at":"2016-07-22T11:30:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b822ed72439ace1dbe913c7b2781a45a5140254","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/261/commits","review_comments_url":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/261/comments","review_comment_url":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-hyper/hyper-h2/issues/261/comments","statuses_url":"https://api.github.com/repos/python-hyper/hyper-h2/statuses/06391cfa1b03a9f9748156386f5c6856e6974ae5","head":{"label":"python-hyper:awlc/authority-host-the-sequel","ref":"awlc/authority-host-the-sequel","sha":"06391cfa1b03a9f9748156386f5c6856e6974ae5","user":{"login":"python-hyper","id":13035907,"avatar_url":"https://avatars.githubusercontent.com/u/13035907?v=3","gravatar_id":"","url":"https://api.github.com/users/python-hyper","html_url":"https://github.com/python-hyper","followers_url":"https://api.github.com/users/python-hyper/followers","following_url":"https://api.github.com/users/python-hyper/following{/other_user}","gists_url":"https://api.github.com/users/python-hyper/gists{/gist_id}","starred_url":"https://api.github.com/users/python-hyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-hyper/subscriptions","organizations_url":"https://api.github.com/users/python-hyper/orgs","repos_url":"https://api.github.com/users/python-hyper/repos","events_url":"https://api.github.com/users/python-hyper/events{/privacy}","received_events_url":"https://api.github.com/users/python-hyper/received_events","type":"Organization","site_admin":false},"repo":{"id":37996233,"name":"hyper-h2","full_name":"python-hyper/hyper-h2","owner":{"login":"python-hyper","id":13035907,"avatar_url":"https://avatars.githubusercontent.com/u/13035907?v=3","gravatar_id":"","url":"https://api.github.com/users/python-hyper","html_url":"https://github.com/python-hyper","followers_url":"https://api.github.com/users/python-hyper/followers","following_url":"https://api.github.com/users/python-hyper/following{/other_user}","gists_url":"https://api.github.com/users/python-hyper/gists{/gist_id}","starred_url":"https://api.github.com/users/python-hyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-hyper/subscriptions","organizations_url":"https://api.github.com/users/python-hyper/orgs","repos_url":"https://api.github.com/users/python-hyper/repos","events_url":"https://api.github.com/users/python-hyper/events{/privacy}","received_events_url":"https://api.github.com/users/python-hyper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-hyper/hyper-h2","description":"HTTP/2 State-Machine based protocol implementation","fork":false,"url":"https://api.github.com/repos/python-hyper/hyper-h2","forks_url":"https://api.github.com/repos/python-hyper/hyper-h2/forks","keys_url":"https://api.github.com/repos/python-hyper/hyper-h2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-hyper/hyper-h2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-hyper/hyper-h2/teams","hooks_url":"https://api.github.com/repos/python-hyper/hyper-h2/hooks","issue_events_url":"https://api.github.com/repos/python-hyper/hyper-h2/issues/events{/number}","events_url":"https://api.github.com/repos/python-hyper/hyper-h2/events","assignees_url":"https://api.github.com/repos/python-hyper/hyper-h2/assignees{/user}","branches_url":"https://api.github.com/repos/python-hyper/hyper-h2/branches{/branch}","tags_url":"https://api.github.com/repos/python-hyper/hyper-h2/tags","blobs_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-hyper/hyper-h2/statuses/{sha}","languages_url":"https://api.github.com/repos/python-hyper/hyper-h2/languages","stargazers_url":"https://api.github.com/repos/python-hyper/hyper-h2/stargazers","contributors_url":"https://api.github.com/repos/python-hyper/hyper-h2/contributors","subscribers_url":"https://api.github.com/repos/python-hyper/hyper-h2/subscribers","subscription_url":"https://api.github.com/repos/python-hyper/hyper-h2/subscription","commits_url":"https://api.github.com/repos/python-hyper/hyper-h2/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-hyper/hyper-h2/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-hyper/hyper-h2/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-hyper/hyper-h2/contents/{+path}","compare_url":"https://api.github.com/repos/python-hyper/hyper-h2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-hyper/hyper-h2/merges","archive_url":"https://api.github.com/repos/python-hyper/hyper-h2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-hyper/hyper-h2/downloads","issues_url":"https://api.github.com/repos/python-hyper/hyper-h2/issues{/number}","pulls_url":"https://api.github.com/repos/python-hyper/hyper-h2/pulls{/number}","milestones_url":"https://api.github.com/repos/python-hyper/hyper-h2/milestones{/number}","notifications_url":"https://api.github.com/repos/python-hyper/hyper-h2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-hyper/hyper-h2/labels{/name}","releases_url":"https://api.github.com/repos/python-hyper/hyper-h2/releases{/id}","deployments_url":"https://api.github.com/repos/python-hyper/hyper-h2/deployments","created_at":"2015-06-24T16:22:19Z","updated_at":"2016-07-21T10:31:23Z","pushed_at":"2016-07-22T11:28:39Z","git_url":"git://github.com/python-hyper/hyper-h2.git","ssh_url":"git@github.com:python-hyper/hyper-h2.git","clone_url":"https://github.com/python-hyper/hyper-h2.git","svn_url":"https://github.com/python-hyper/hyper-h2","homepage":"http://python-hyper.org/h2/","size":938,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":19,"forks":23,"open_issues":19,"watchers":87,"default_branch":"master"}},"base":{"label":"python-hyper:master","ref":"master","sha":"9f5f97e869f2e3b78935050ca2de040ee78addf0","user":{"login":"python-hyper","id":13035907,"avatar_url":"https://avatars.githubusercontent.com/u/13035907?v=3","gravatar_id":"","url":"https://api.github.com/users/python-hyper","html_url":"https://github.com/python-hyper","followers_url":"https://api.github.com/users/python-hyper/followers","following_url":"https://api.github.com/users/python-hyper/following{/other_user}","gists_url":"https://api.github.com/users/python-hyper/gists{/gist_id}","starred_url":"https://api.github.com/users/python-hyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-hyper/subscriptions","organizations_url":"https://api.github.com/users/python-hyper/orgs","repos_url":"https://api.github.com/users/python-hyper/repos","events_url":"https://api.github.com/users/python-hyper/events{/privacy}","received_events_url":"https://api.github.com/users/python-hyper/received_events","type":"Organization","site_admin":false},"repo":{"id":37996233,"name":"hyper-h2","full_name":"python-hyper/hyper-h2","owner":{"login":"python-hyper","id":13035907,"avatar_url":"https://avatars.githubusercontent.com/u/13035907?v=3","gravatar_id":"","url":"https://api.github.com/users/python-hyper","html_url":"https://github.com/python-hyper","followers_url":"https://api.github.com/users/python-hyper/followers","following_url":"https://api.github.com/users/python-hyper/following{/other_user}","gists_url":"https://api.github.com/users/python-hyper/gists{/gist_id}","starred_url":"https://api.github.com/users/python-hyper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-hyper/subscriptions","organizations_url":"https://api.github.com/users/python-hyper/orgs","repos_url":"https://api.github.com/users/python-hyper/repos","events_url":"https://api.github.com/users/python-hyper/events{/privacy}","received_events_url":"https://api.github.com/users/python-hyper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-hyper/hyper-h2","description":"HTTP/2 State-Machine based protocol implementation","fork":false,"url":"https://api.github.com/repos/python-hyper/hyper-h2","forks_url":"https://api.github.com/repos/python-hyper/hyper-h2/forks","keys_url":"https://api.github.com/repos/python-hyper/hyper-h2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-hyper/hyper-h2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-hyper/hyper-h2/teams","hooks_url":"https://api.github.com/repos/python-hyper/hyper-h2/hooks","issue_events_url":"https://api.github.com/repos/python-hyper/hyper-h2/issues/events{/number}","events_url":"https://api.github.com/repos/python-hyper/hyper-h2/events","assignees_url":"https://api.github.com/repos/python-hyper/hyper-h2/assignees{/user}","branches_url":"https://api.github.com/repos/python-hyper/hyper-h2/branches{/branch}","tags_url":"https://api.github.com/repos/python-hyper/hyper-h2/tags","blobs_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-hyper/hyper-h2/statuses/{sha}","languages_url":"https://api.github.com/repos/python-hyper/hyper-h2/languages","stargazers_url":"https://api.github.com/repos/python-hyper/hyper-h2/stargazers","contributors_url":"https://api.github.com/repos/python-hyper/hyper-h2/contributors","subscribers_url":"https://api.github.com/repos/python-hyper/hyper-h2/subscribers","subscription_url":"https://api.github.com/repos/python-hyper/hyper-h2/subscription","commits_url":"https://api.github.com/repos/python-hyper/hyper-h2/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-hyper/hyper-h2/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-hyper/hyper-h2/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-hyper/hyper-h2/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-hyper/hyper-h2/contents/{+path}","compare_url":"https://api.github.com/repos/python-hyper/hyper-h2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-hyper/hyper-h2/merges","archive_url":"https://api.github.com/repos/python-hyper/hyper-h2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-hyper/hyper-h2/downloads","issues_url":"https://api.github.com/repos/python-hyper/hyper-h2/issues{/number}","pulls_url":"https://api.github.com/repos/python-hyper/hyper-h2/pulls{/number}","milestones_url":"https://api.github.com/repos/python-hyper/hyper-h2/milestones{/number}","notifications_url":"https://api.github.com/repos/python-hyper/hyper-h2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-hyper/hyper-h2/labels{/name}","releases_url":"https://api.github.com/repos/python-hyper/hyper-h2/releases{/id}","deployments_url":"https://api.github.com/repos/python-hyper/hyper-h2/deployments","created_at":"2015-06-24T16:22:19Z","updated_at":"2016-07-21T10:31:23Z","pushed_at":"2016-07-22T11:28:39Z","git_url":"git://github.com/python-hyper/hyper-h2.git","ssh_url":"git@github.com:python-hyper/hyper-h2.git","clone_url":"https://github.com/python-hyper/hyper-h2.git","svn_url":"https://github.com/python-hyper/hyper-h2","homepage":"http://python-hyper.org/h2/","size":938,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":19,"forks":23,"open_issues":19,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/261"},"html":{"href":"https://github.com/python-hyper/hyper-h2/pull/261"},"issue":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/issues/261"},"comments":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/python-hyper/hyper-h2/statuses/06391cfa1b03a9f9748156386f5c6856e6974ae5"}}}}
{"actor":{"display_login":"Lukasa"}}