{"action":"created","comment":{"url":"https://api.github.com/repos/sorcio/trio-asgi/pulls/comments/205945797","pull_request_review_id":141319594,"id":205945797,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTk0NTc5Nw==","diff_hunk":"@@ -0,0 +1,25 @@\n+\n+class App():\n+    def __init__(self, scope):\n+        self.scope = scope\n+\n+    async def __call__(self, receive, send):\n+        await send({\n+            'type': 'http.response.start',\n+            'status': 200,\n+            'headers': [\n+                [b'content-type', b'text/plain'],\n+            ],\n+        })\n+        await send({\n+            'type': 'http.response.body',\n+            'body': b'Hello, world!',\n+        })\n+\n+\n+if __name__ == '__main__':\n+    # The above can be used using the ASGI-compatible cli,\n+    # or we can run in programatically:\n+    import trio\n+    from trio_web import serve_tcp as serve_http  # todo: why is it called serve_tcp","path":"examples/hello_world.py","position":24,"original_position":24,"commit_id":"153783ed277603b07b79b42f9aca9c22ccf9a1b4","original_commit_id":"153783ed277603b07b79b42f9aca9c22ccf9a1b4","user":{"login":"sorcio","id":1160460,"node_id":"MDQ6VXNlcjExNjA0NjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1160460?v=4","gravatar_id":"","url":"https://api.github.com/users/sorcio","html_url":"https://github.com/sorcio","followers_url":"https://api.github.com/users/sorcio/followers","following_url":"https://api.github.com/users/sorcio/following{/other_user}","gists_url":"https://api.github.com/users/sorcio/gists{/gist_id}","starred_url":"https://api.github.com/users/sorcio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorcio/subscriptions","organizations_url":"https://api.github.com/users/sorcio/orgs","repos_url":"https://api.github.com/users/sorcio/repos","events_url":"https://api.github.com/users/sorcio/events{/privacy}","received_events_url":"https://api.github.com/users/sorcio/received_events","type":"User","site_admin":false},"body":"...and why is it called trio_web instead of trio_asgi? Yeah, I know! :) ","created_at":"2018-07-28T15:19:47Z","updated_at":"2018-07-28T15:19:47Z","html_url":"https://github.com/sorcio/trio-asgi/pull/1#discussion_r205945797","pull_request_url":"https://api.github.com/repos/sorcio/trio-asgi/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/sorcio/trio-asgi/pulls/comments/205945797"},"html":{"href":"https://github.com/sorcio/trio-asgi/pull/1#discussion_r205945797"},"pull_request":{"href":"https://api.github.com/repos/sorcio/trio-asgi/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/sorcio/trio-asgi/pulls/1","id":204597374,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NTk3Mzc0","html_url":"https://github.com/sorcio/trio-asgi/pull/1","diff_url":"https://github.com/sorcio/trio-asgi/pull/1.diff","patch_url":"https://github.com/sorcio/trio-asgi/pull/1.patch","issue_url":"https://api.github.com/repos/sorcio/trio-asgi/issues/1","number":1,"state":"open","locked":false,"title":"CLI and simple http example","user":{"login":"almarklein","id":3015475,"node_id":"MDQ6VXNlcjMwMTU0NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/3015475?v=4","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-28T15:16:58Z","updated_at":"2018-07-28T15:19:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3604be335cfade7718f0ec1790689157a925f127","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sorcio/trio-asgi/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sorcio/trio-asgi/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sorcio/trio-asgi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sorcio/trio-asgi/issues/1/comments","statuses_url":"https://api.github.com/repos/sorcio/trio-asgi/statuses/153783ed277603b07b79b42f9aca9c22ccf9a1b4","head":{"label":"almarklein:master","ref":"master","sha":"153783ed277603b07b79b42f9aca9c22ccf9a1b4","user":{"login":"almarklein","id":3015475,"node_id":"MDQ6VXNlcjMwMTU0NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/3015475?v=4","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"repo":{"id":142680091,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI2ODAwOTE=","name":"trio-asgi","full_name":"almarklein/trio-asgi","owner":{"login":"almarklein","id":3015475,"node_id":"MDQ6VXNlcjMwMTU0NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/3015475?v=4","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/almarklein/trio-asgi","description":"trio experimental http asgi protocol server","fork":true,"url":"https://api.github.com/repos/almarklein/trio-asgi","forks_url":"https://api.github.com/repos/almarklein/trio-asgi/forks","keys_url":"https://api.github.com/repos/almarklein/trio-asgi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/almarklein/trio-asgi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/almarklein/trio-asgi/teams","hooks_url":"https://api.github.com/repos/almarklein/trio-asgi/hooks","issue_events_url":"https://api.github.com/repos/almarklein/trio-asgi/issues/events{/number}","events_url":"https://api.github.com/repos/almarklein/trio-asgi/events","assignees_url":"https://api.github.com/repos/almarklein/trio-asgi/assignees{/user}","branches_url":"https://api.github.com/repos/almarklein/trio-asgi/branches{/branch}","tags_url":"https://api.github.com/repos/almarklein/trio-asgi/tags","blobs_url":"https://api.github.com/repos/almarklein/trio-asgi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/almarklein/trio-asgi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/almarklein/trio-asgi/git/refs{/sha}","trees_url":"https://api.github.com/repos/almarklein/trio-asgi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/almarklein/trio-asgi/statuses/{sha}","languages_url":"https://api.github.com/repos/almarklein/trio-asgi/languages","stargazers_url":"https://api.github.com/repos/almarklein/trio-asgi/stargazers","contributors_url":"https://api.github.com/repos/almarklein/trio-asgi/contributors","subscribers_url":"https://api.github.com/repos/almarklein/trio-asgi/subscribers","subscription_url":"https://api.github.com/repos/almarklein/trio-asgi/subscription","commits_url":"https://api.github.com/repos/almarklein/trio-asgi/commits{/sha}","git_commits_url":"https://api.github.com/repos/almarklein/trio-asgi/git/commits{/sha}","comments_url":"https://api.github.com/repos/almarklein/trio-asgi/comments{/number}","issue_comment_url":"https://api.github.com/repos/almarklein/trio-asgi/issues/comments{/number}","contents_url":"https://api.github.com/repos/almarklein/trio-asgi/contents/{+path}","compare_url":"https://api.github.com/repos/almarklein/trio-asgi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/almarklein/trio-asgi/merges","archive_url":"https://api.github.com/repos/almarklein/trio-asgi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/almarklein/trio-asgi/downloads","issues_url":"https://api.github.com/repos/almarklein/trio-asgi/issues{/number}","pulls_url":"https://api.github.com/repos/almarklein/trio-asgi/pulls{/number}","milestones_url":"https://api.github.com/repos/almarklein/trio-asgi/milestones{/number}","notifications_url":"https://api.github.com/repos/almarklein/trio-asgi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/almarklein/trio-asgi/labels{/name}","releases_url":"https://api.github.com/repos/almarklein/trio-asgi/releases{/id}","deployments_url":"https://api.github.com/repos/almarklein/trio-asgi/deployments","created_at":"2018-07-28T13:37:28Z","updated_at":"2018-07-28T15:16:40Z","pushed_at":"2018-07-28T15:16:38Z","git_url":"git://github.com/almarklein/trio-asgi.git","ssh_url":"git@github.com:almarklein/trio-asgi.git","clone_url":"https://github.com/almarklein/trio-asgi.git","svn_url":"https://github.com/almarklein/trio-asgi","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"Python","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sorcio:master","ref":"master","sha":"9823191291105bbfa05c824f9627f5ccf817e046","user":{"login":"sorcio","id":1160460,"node_id":"MDQ6VXNlcjExNjA0NjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1160460?v=4","gravatar_id":"","url":"https://api.github.com/users/sorcio","html_url":"https://github.com/sorcio","followers_url":"https://api.github.com/users/sorcio/followers","following_url":"https://api.github.com/users/sorcio/following{/other_user}","gists_url":"https://api.github.com/users/sorcio/gists{/gist_id}","starred_url":"https://api.github.com/users/sorcio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorcio/subscriptions","organizations_url":"https://api.github.com/users/sorcio/orgs","repos_url":"https://api.github.com/users/sorcio/repos","events_url":"https://api.github.com/users/sorcio/events{/privacy}","received_events_url":"https://api.github.com/users/sorcio/received_events","type":"User","site_admin":false},"repo":{"id":141016711,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEwMTY3MTE=","name":"trio-asgi","full_name":"sorcio/trio-asgi","owner":{"login":"sorcio","id":1160460,"node_id":"MDQ6VXNlcjExNjA0NjA=","avatar_url":"https://avatars1.githubusercontent.com/u/1160460?v=4","gravatar_id":"","url":"https://api.github.com/users/sorcio","html_url":"https://github.com/sorcio","followers_url":"https://api.github.com/users/sorcio/followers","following_url":"https://api.github.com/users/sorcio/following{/other_user}","gists_url":"https://api.github.com/users/sorcio/gists{/gist_id}","starred_url":"https://api.github.com/users/sorcio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorcio/subscriptions","organizations_url":"https://api.github.com/users/sorcio/orgs","repos_url":"https://api.github.com/users/sorcio/repos","events_url":"https://api.github.com/users/sorcio/events{/privacy}","received_events_url":"https://api.github.com/users/sorcio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sorcio/trio-asgi","description":"trio experimental http asgi protocol server","fork":false,"url":"https://api.github.com/repos/sorcio/trio-asgi","forks_url":"https://api.github.com/repos/sorcio/trio-asgi/forks","keys_url":"https://api.github.com/repos/sorcio/trio-asgi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sorcio/trio-asgi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sorcio/trio-asgi/teams","hooks_url":"https://api.github.com/repos/sorcio/trio-asgi/hooks","issue_events_url":"https://api.github.com/repos/sorcio/trio-asgi/issues/events{/number}","events_url":"https://api.github.com/repos/sorcio/trio-asgi/events","assignees_url":"https://api.github.com/repos/sorcio/trio-asgi/assignees{/user}","branches_url":"https://api.github.com/repos/sorcio/trio-asgi/branches{/branch}","tags_url":"https://api.github.com/repos/sorcio/trio-asgi/tags","blobs_url":"https://api.github.com/repos/sorcio/trio-asgi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sorcio/trio-asgi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sorcio/trio-asgi/git/refs{/sha}","trees_url":"https://api.github.com/repos/sorcio/trio-asgi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sorcio/trio-asgi/statuses/{sha}","languages_url":"https://api.github.com/repos/sorcio/trio-asgi/languages","stargazers_url":"https://api.github.com/repos/sorcio/trio-asgi/stargazers","contributors_url":"https://api.github.com/repos/sorcio/trio-asgi/contributors","subscribers_url":"https://api.github.com/repos/sorcio/trio-asgi/subscribers","subscription_url":"https://api.github.com/repos/sorcio/trio-asgi/subscription","commits_url":"https://api.github.com/repos/sorcio/trio-asgi/commits{/sha}","git_commits_url":"https://api.github.com/repos/sorcio/trio-asgi/git/commits{/sha}","comments_url":"https://api.github.com/repos/sorcio/trio-asgi/comments{/number}","issue_comment_url":"https://api.github.com/repos/sorcio/trio-asgi/issues/comments{/number}","contents_url":"https://api.github.com/repos/sorcio/trio-asgi/contents/{+path}","compare_url":"https://api.github.com/repos/sorcio/trio-asgi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sorcio/trio-asgi/merges","archive_url":"https://api.github.com/repos/sorcio/trio-asgi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sorcio/trio-asgi/downloads","issues_url":"https://api.github.com/repos/sorcio/trio-asgi/issues{/number}","pulls_url":"https://api.github.com/repos/sorcio/trio-asgi/pulls{/number}","milestones_url":"https://api.github.com/repos/sorcio/trio-asgi/milestones{/number}","notifications_url":"https://api.github.com/repos/sorcio/trio-asgi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sorcio/trio-asgi/labels{/name}","releases_url":"https://api.github.com/repos/sorcio/trio-asgi/releases{/id}","deployments_url":"https://api.github.com/repos/sorcio/trio-asgi/deployments","created_at":"2018-07-15T10:05:21Z","updated_at":"2018-07-28T11:45:30Z","pushed_at":"2018-07-28T15:16:57Z","git_url":"git://github.com/sorcio/trio-asgi.git","ssh_url":"git@github.com:sorcio/trio-asgi.git","clone_url":"https://github.com/sorcio/trio-asgi.git","svn_url":"https://github.com/sorcio/trio-asgi","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Python","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":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sorcio/trio-asgi/pulls/1"},"html":{"href":"https://github.com/sorcio/trio-asgi/pull/1"},"issue":{"href":"https://api.github.com/repos/sorcio/trio-asgi/issues/1"},"comments":{"href":"https://api.github.com/repos/sorcio/trio-asgi/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sorcio/trio-asgi/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sorcio/trio-asgi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sorcio/trio-asgi/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sorcio/trio-asgi/statuses/153783ed277603b07b79b42f9aca9c22ccf9a1b4"}},"author_association":"NONE"}}
{"actor":{"display_login":"sorcio"}}