{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/jshttp/on-headers/pulls/7","id":72097075,"html_url":"https://github.com/jshttp/on-headers/pull/7","diff_url":"https://github.com/jshttp/on-headers/pull/7.diff","patch_url":"https://github.com/jshttp/on-headers/pull/7.patch","issue_url":"https://api.github.com/repos/jshttp/on-headers/issues/7","number":7,"state":"closed","locked":false,"title":"Allow callback based listeners","user":{"login":"baloo","id":59060,"avatar_url":"https://avatars.githubusercontent.com/u/59060?v=3","gravatar_id":"","url":"https://api.github.com/users/baloo","html_url":"https://github.com/baloo","followers_url":"https://api.github.com/users/baloo/followers","following_url":"https://api.github.com/users/baloo/following{/other_user}","gists_url":"https://api.github.com/users/baloo/gists{/gist_id}","starred_url":"https://api.github.com/users/baloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baloo/subscriptions","organizations_url":"https://api.github.com/users/baloo/orgs","repos_url":"https://api.github.com/users/baloo/repos","events_url":"https://api.github.com/users/baloo/events{/privacy}","received_events_url":"https://api.github.com/users/baloo/received_events","type":"User","site_admin":false},"body":"Use case: Iron-based session store for express, Iron only provides a callback based api. See https://github.com/baloo/express-session-iron/blob/on-headers/index.js","created_at":"2016-05-31T22:36:21Z","updated_at":"2016-05-31T22:45:04Z","closed_at":"2016-05-31T22:45:04Z","merged_at":null,"merge_commit_sha":"ac9102a7d71ea8f26e7114a5d44bcd60c6bddfad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jshttp/on-headers/pulls/7/commits","review_comments_url":"https://api.github.com/repos/jshttp/on-headers/pulls/7/comments","review_comment_url":"https://api.github.com/repos/jshttp/on-headers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jshttp/on-headers/issues/7/comments","statuses_url":"https://api.github.com/repos/jshttp/on-headers/statuses/5652c63e2920c1f98a6abaca1c397dd794eaccbd","head":{"label":"baloo:features/callback-listeners","ref":"features/callback-listeners","sha":"5652c63e2920c1f98a6abaca1c397dd794eaccbd","user":{"login":"baloo","id":59060,"avatar_url":"https://avatars.githubusercontent.com/u/59060?v=3","gravatar_id":"","url":"https://api.github.com/users/baloo","html_url":"https://github.com/baloo","followers_url":"https://api.github.com/users/baloo/followers","following_url":"https://api.github.com/users/baloo/following{/other_user}","gists_url":"https://api.github.com/users/baloo/gists{/gist_id}","starred_url":"https://api.github.com/users/baloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baloo/subscriptions","organizations_url":"https://api.github.com/users/baloo/orgs","repos_url":"https://api.github.com/users/baloo/repos","events_url":"https://api.github.com/users/baloo/events{/privacy}","received_events_url":"https://api.github.com/users/baloo/received_events","type":"User","site_admin":false},"repo":{"id":60128108,"name":"on-headers","full_name":"baloo/on-headers","owner":{"login":"baloo","id":59060,"avatar_url":"https://avatars.githubusercontent.com/u/59060?v=3","gravatar_id":"","url":"https://api.github.com/users/baloo","html_url":"https://github.com/baloo","followers_url":"https://api.github.com/users/baloo/followers","following_url":"https://api.github.com/users/baloo/following{/other_user}","gists_url":"https://api.github.com/users/baloo/gists{/gist_id}","starred_url":"https://api.github.com/users/baloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baloo/subscriptions","organizations_url":"https://api.github.com/users/baloo/orgs","repos_url":"https://api.github.com/users/baloo/repos","events_url":"https://api.github.com/users/baloo/events{/privacy}","received_events_url":"https://api.github.com/users/baloo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/baloo/on-headers","description":"Execute a listener when a response is about to write headers.","fork":true,"url":"https://api.github.com/repos/baloo/on-headers","forks_url":"https://api.github.com/repos/baloo/on-headers/forks","keys_url":"https://api.github.com/repos/baloo/on-headers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baloo/on-headers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baloo/on-headers/teams","hooks_url":"https://api.github.com/repos/baloo/on-headers/hooks","issue_events_url":"https://api.github.com/repos/baloo/on-headers/issues/events{/number}","events_url":"https://api.github.com/repos/baloo/on-headers/events","assignees_url":"https://api.github.com/repos/baloo/on-headers/assignees{/user}","branches_url":"https://api.github.com/repos/baloo/on-headers/branches{/branch}","tags_url":"https://api.github.com/repos/baloo/on-headers/tags","blobs_url":"https://api.github.com/repos/baloo/on-headers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baloo/on-headers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baloo/on-headers/git/refs{/sha}","trees_url":"https://api.github.com/repos/baloo/on-headers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baloo/on-headers/statuses/{sha}","languages_url":"https://api.github.com/repos/baloo/on-headers/languages","stargazers_url":"https://api.github.com/repos/baloo/on-headers/stargazers","contributors_url":"https://api.github.com/repos/baloo/on-headers/contributors","subscribers_url":"https://api.github.com/repos/baloo/on-headers/subscribers","subscription_url":"https://api.github.com/repos/baloo/on-headers/subscription","commits_url":"https://api.github.com/repos/baloo/on-headers/commits{/sha}","git_commits_url":"https://api.github.com/repos/baloo/on-headers/git/commits{/sha}","comments_url":"https://api.github.com/repos/baloo/on-headers/comments{/number}","issue_comment_url":"https://api.github.com/repos/baloo/on-headers/issues/comments{/number}","contents_url":"https://api.github.com/repos/baloo/on-headers/contents/{+path}","compare_url":"https://api.github.com/repos/baloo/on-headers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baloo/on-headers/merges","archive_url":"https://api.github.com/repos/baloo/on-headers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baloo/on-headers/downloads","issues_url":"https://api.github.com/repos/baloo/on-headers/issues{/number}","pulls_url":"https://api.github.com/repos/baloo/on-headers/pulls{/number}","milestones_url":"https://api.github.com/repos/baloo/on-headers/milestones{/number}","notifications_url":"https://api.github.com/repos/baloo/on-headers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baloo/on-headers/labels{/name}","releases_url":"https://api.github.com/repos/baloo/on-headers/releases{/id}","deployments_url":"https://api.github.com/repos/baloo/on-headers/deployments","created_at":"2016-05-31T22:32:01Z","updated_at":"2016-05-31T22:32:02Z","pushed_at":"2016-05-31T22:32:20Z","git_url":"git://github.com/baloo/on-headers.git","ssh_url":"git@github.com:baloo/on-headers.git","clone_url":"https://github.com/baloo/on-headers.git","svn_url":"https://github.com/baloo/on-headers","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"jshttp:master","ref":"master","sha":"3041f26bae86656adbe1246281d7a7cc2e725ec4","user":{"login":"jshttp","id":8325802,"avatar_url":"https://avatars.githubusercontent.com/u/8325802?v=3","gravatar_id":"","url":"https://api.github.com/users/jshttp","html_url":"https://github.com/jshttp","followers_url":"https://api.github.com/users/jshttp/followers","following_url":"https://api.github.com/users/jshttp/following{/other_user}","gists_url":"https://api.github.com/users/jshttp/gists{/gist_id}","starred_url":"https://api.github.com/users/jshttp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshttp/subscriptions","organizations_url":"https://api.github.com/users/jshttp/orgs","repos_url":"https://api.github.com/users/jshttp/repos","events_url":"https://api.github.com/users/jshttp/events{/privacy}","received_events_url":"https://api.github.com/users/jshttp/received_events","type":"Organization","site_admin":false},"repo":{"id":19762040,"name":"on-headers","full_name":"jshttp/on-headers","owner":{"login":"jshttp","id":8325802,"avatar_url":"https://avatars.githubusercontent.com/u/8325802?v=3","gravatar_id":"","url":"https://api.github.com/users/jshttp","html_url":"https://github.com/jshttp","followers_url":"https://api.github.com/users/jshttp/followers","following_url":"https://api.github.com/users/jshttp/following{/other_user}","gists_url":"https://api.github.com/users/jshttp/gists{/gist_id}","starred_url":"https://api.github.com/users/jshttp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshttp/subscriptions","organizations_url":"https://api.github.com/users/jshttp/orgs","repos_url":"https://api.github.com/users/jshttp/repos","events_url":"https://api.github.com/users/jshttp/events{/privacy}","received_events_url":"https://api.github.com/users/jshttp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jshttp/on-headers","description":"Execute a listener when a response is about to write headers.","fork":false,"url":"https://api.github.com/repos/jshttp/on-headers","forks_url":"https://api.github.com/repos/jshttp/on-headers/forks","keys_url":"https://api.github.com/repos/jshttp/on-headers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jshttp/on-headers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jshttp/on-headers/teams","hooks_url":"https://api.github.com/repos/jshttp/on-headers/hooks","issue_events_url":"https://api.github.com/repos/jshttp/on-headers/issues/events{/number}","events_url":"https://api.github.com/repos/jshttp/on-headers/events","assignees_url":"https://api.github.com/repos/jshttp/on-headers/assignees{/user}","branches_url":"https://api.github.com/repos/jshttp/on-headers/branches{/branch}","tags_url":"https://api.github.com/repos/jshttp/on-headers/tags","blobs_url":"https://api.github.com/repos/jshttp/on-headers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jshttp/on-headers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jshttp/on-headers/git/refs{/sha}","trees_url":"https://api.github.com/repos/jshttp/on-headers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jshttp/on-headers/statuses/{sha}","languages_url":"https://api.github.com/repos/jshttp/on-headers/languages","stargazers_url":"https://api.github.com/repos/jshttp/on-headers/stargazers","contributors_url":"https://api.github.com/repos/jshttp/on-headers/contributors","subscribers_url":"https://api.github.com/repos/jshttp/on-headers/subscribers","subscription_url":"https://api.github.com/repos/jshttp/on-headers/subscription","commits_url":"https://api.github.com/repos/jshttp/on-headers/commits{/sha}","git_commits_url":"https://api.github.com/repos/jshttp/on-headers/git/commits{/sha}","comments_url":"https://api.github.com/repos/jshttp/on-headers/comments{/number}","issue_comment_url":"https://api.github.com/repos/jshttp/on-headers/issues/comments{/number}","contents_url":"https://api.github.com/repos/jshttp/on-headers/contents/{+path}","compare_url":"https://api.github.com/repos/jshttp/on-headers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jshttp/on-headers/merges","archive_url":"https://api.github.com/repos/jshttp/on-headers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jshttp/on-headers/downloads","issues_url":"https://api.github.com/repos/jshttp/on-headers/issues{/number}","pulls_url":"https://api.github.com/repos/jshttp/on-headers/pulls{/number}","milestones_url":"https://api.github.com/repos/jshttp/on-headers/milestones{/number}","notifications_url":"https://api.github.com/repos/jshttp/on-headers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jshttp/on-headers/labels{/name}","releases_url":"https://api.github.com/repos/jshttp/on-headers/releases{/id}","deployments_url":"https://api.github.com/repos/jshttp/on-headers/deployments","created_at":"2014-05-14T01:30:01Z","updated_at":"2016-05-20T08:28:17Z","pushed_at":"2016-05-31T22:36:23Z","git_url":"git://github.com/jshttp/on-headers.git","ssh_url":"git@github.com:jshttp/on-headers.git","clone_url":"https://github.com/jshttp/on-headers.git","svn_url":"https://github.com/jshttp/on-headers","homepage":null,"size":27,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":0,"forks":5,"open_issues":0,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jshttp/on-headers/pulls/7"},"html":{"href":"https://github.com/jshttp/on-headers/pull/7"},"issue":{"href":"https://api.github.com/repos/jshttp/on-headers/issues/7"},"comments":{"href":"https://api.github.com/repos/jshttp/on-headers/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/jshttp/on-headers/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/jshttp/on-headers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jshttp/on-headers/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/jshttp/on-headers/statuses/5652c63e2920c1f98a6abaca1c397dd794eaccbd"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":99,"deletions":18,"changed_files":2}}
{"actor":{"display_login":"dougwilson"}}