{"action":"created","issue":{"url":"https://api.github.com/repos/dora-js/dora/issues/9","labels_url":"https://api.github.com/repos/dora-js/dora/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/dora-js/dora/issues/9/comments","events_url":"https://api.github.com/repos/dora-js/dora/issues/9/events","html_url":"https://github.com/dora-js/dora/pull/9","id":123225493,"number":9,"title":"调整 server.before 触发点以及添加 process.exit 方法","user":{"login":"YuhangGe","id":663405,"avatar_url":"https://avatars.githubusercontent.com/u/663405?v=3","gravatar_id":"","url":"https://api.github.com/users/YuhangGe","html_url":"https://github.com/YuhangGe","followers_url":"https://api.github.com/users/YuhangGe/followers","following_url":"https://api.github.com/users/YuhangGe/following{/other_user}","gists_url":"https://api.github.com/users/YuhangGe/gists{/gist_id}","starred_url":"https://api.github.com/users/YuhangGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuhangGe/subscriptions","organizations_url":"https://api.github.com/users/YuhangGe/orgs","repos_url":"https://api.github.com/users/YuhangGe/repos","events_url":"https://api.github.com/users/YuhangGe/events{/privacy}","received_events_url":"https://api.github.com/users/YuhangGe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-21T07:39:18Z","updated_at":"2015-12-21T13:22:08Z","closed_at":"2015-12-21T13:21:59Z","pull_request":{"url":"https://api.github.com/repos/dora-js/dora/pulls/9","html_url":"https://github.com/dora-js/dora/pull/9","diff_url":"https://github.com/dora-js/dora/pull/9.diff","patch_url":"https://github.com/dora-js/dora/pull/9.patch"},"body":"1. 将 server.before 方法的触发时间调整在 http.createServer 之后，并且将该 server 通过 `args.server` 传递给 plugin，使得 plugin 可以配置 server。这个改动点完全向前兼容。\r\n2. 添加 process.exit 方法，在应用退出时，插件可以利用这个方法进行一些资源回收等操作，比如清空临时文件夹，释放文件占用或端口，等。"},"comment":{"url":"https://api.github.com/repos/dora-js/dora/issues/comments/166304565","html_url":"https://github.com/dora-js/dora/pull/9#issuecomment-166304565","issue_url":"https://api.github.com/repos/dora-js/dora/issues/9","id":166304565,"user":{"login":"sorrycc","id":35128,"avatar_url":"https://avatars.githubusercontent.com/u/35128?v=3","gravatar_id":"","url":"https://api.github.com/users/sorrycc","html_url":"https://github.com/sorrycc","followers_url":"https://api.github.com/users/sorrycc/followers","following_url":"https://api.github.com/users/sorrycc/following{/other_user}","gists_url":"https://api.github.com/users/sorrycc/gists{/gist_id}","starred_url":"https://api.github.com/users/sorrycc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorrycc/subscriptions","organizations_url":"https://api.github.com/users/sorrycc/orgs","repos_url":"https://api.github.com/users/sorrycc/repos","events_url":"https://api.github.com/users/sorrycc/events{/privacy}","received_events_url":"https://api.github.com/users/sorrycc/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T13:22:08Z","updated_at":"2015-12-21T13:22:08Z","body":":+1: "}}