{"action":"created","issue":{"url":"https://api.github.com/repos/kr/secureheader/issues/14","repository_url":"https://api.github.com/repos/kr/secureheader","labels_url":"https://api.github.com/repos/kr/secureheader/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/kr/secureheader/issues/14/comments","events_url":"https://api.github.com/repos/kr/secureheader/issues/14/events","html_url":"https://github.com/kr/secureheader/pull/14","id":348058447,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NDk4NjA5","number":14,"title":"add function Handler for convenience","user":{"login":"kr","id":4178,"node_id":"MDQ6VXNlcjQxNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/4178?v=4","gravatar_id":"","url":"https://api.github.com/users/kr","html_url":"https://github.com/kr","followers_url":"https://api.github.com/users/kr/followers","following_url":"https://api.github.com/users/kr/following{/other_user}","gists_url":"https://api.github.com/users/kr/gists{/gist_id}","starred_url":"https://api.github.com/users/kr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kr/subscriptions","organizations_url":"https://api.github.com/users/kr/orgs","repos_url":"https://api.github.com/users/kr/repos","events_url":"https://api.github.com/users/kr/events{/privacy}","received_events_url":"https://api.github.com/users/kr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-06T19:48:39Z","updated_at":"2018-08-06T20:29:11Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/kr/secureheader/pulls/14","html_url":"https://github.com/kr/secureheader/pull/14","diff_url":"https://github.com/kr/secureheader/pull/14.diff","patch_url":"https://github.com/kr/secureheader/pull/14.patch"},"body":"This function signature makes it easier to do the most\r\ncommon usage patterns I'm aware of, after several years\r\nof seeing this package used in the wild.\r\n\r\n\thttp.Handle(\"/\", secureheader.Handler(mux))\r\n\thttp.ListenAndServe(addr, nil)\r\n\r\nand\r\n\r\n\thttp.Handle(\"/a\", a)\r\n\thttp.Handle(\"/b\", b)\r\n\thttp.ListenAndServe(addr, secureheader.Handler(nil))\r\n\r\nand\r\n\r\n\tvar h http.Handler\r\n\th = mux\r\n\th = middleware3(h)\r\n\th = secureheader.Handler(h)\r\n\th = middleware1(h)\r\n\thttp.ListenAndServe(addr, h)"},"comment":{"url":"https://api.github.com/repos/kr/secureheader/issues/comments/410842875","html_url":"https://github.com/kr/secureheader/pull/14#issuecomment-410842875","issue_url":"https://api.github.com/repos/kr/secureheader/issues/14","id":410842875,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDg0Mjg3NQ==","user":{"login":"kr","id":4178,"node_id":"MDQ6VXNlcjQxNzg=","avatar_url":"https://avatars2.githubusercontent.com/u/4178?v=4","gravatar_id":"","url":"https://api.github.com/users/kr","html_url":"https://github.com/kr","followers_url":"https://api.github.com/users/kr/followers","following_url":"https://api.github.com/users/kr/following{/other_user}","gists_url":"https://api.github.com/users/kr/gists{/gist_id}","starred_url":"https://api.github.com/users/kr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kr/subscriptions","organizations_url":"https://api.github.com/users/kr/orgs","repos_url":"https://api.github.com/users/kr/repos","events_url":"https://api.github.com/users/kr/events{/privacy}","received_events_url":"https://api.github.com/users/kr/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T20:29:11Z","updated_at":"2018-08-06T20:29:11Z","author_association":"OWNER","body":"PTAL"}}
{"actor":{"display_login":"kr"}}