{"action":"created","issue":{"url":"https://api.github.com/repos/restify/node-restify/issues/963","labels_url":"https://api.github.com/repos/restify/node-restify/issues/963/labels{/name}","comments_url":"https://api.github.com/repos/restify/node-restify/issues/963/comments","events_url":"https://api.github.com/repos/restify/node-restify/issues/963/events","html_url":"https://github.com/restify/node-restify/pull/963","id":120453024,"number":963,"title":"feat(response): redirect, set & docs enhancements","user":{"login":"jameswomack","id":77849,"avatar_url":"https://avatars.githubusercontent.com/u/77849?v=3","gravatar_id":"","url":"https://api.github.com/users/jameswomack","html_url":"https://github.com/jameswomack","followers_url":"https://api.github.com/users/jameswomack/followers","following_url":"https://api.github.com/users/jameswomack/following{/other_user}","gists_url":"https://api.github.com/users/jameswomack/gists{/gist_id}","starred_url":"https://api.github.com/users/jameswomack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameswomack/subscriptions","organizations_url":"https://api.github.com/users/jameswomack/orgs","repos_url":"https://api.github.com/users/jameswomack/repos","events_url":"https://api.github.com/users/jameswomack/events{/privacy}","received_events_url":"https://api.github.com/users/jameswomack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T17:55:06Z","updated_at":"2015-12-04T18:00:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/restify/node-restify/pulls/963","html_url":"https://github.com/restify/node-restify/pull/963","diff_url":"https://github.com/restify/node-restify/pull/963.diff","patch_url":"https://github.com/restify/node-restify/pull/963.patch"},"body":"# James' Response changes & fixes for Restify 5\r\n\r\n:star: :star2: :facepunch:\r\n\r\n* Make `set` behave in a dev-friendly way whether it's called with a key-val pair or with a collection of key-val pairs\r\n* Make `redirect` emit a `redirect` event with the `redirectLocation`\r\n* Human-friendly assertion strings in `set`, more inline with recent assertions such as that in `redirect`\r\n* Improve Restify install time and eventual readability by removing unused dependencies **keep-alive-agent, backoff, verror** & **tunnel-agent**\r\n* Document that `writeHead` emits `header`\r\n* Test that `writeHead` emits `header`\r\n* Grammar correction for a comment"},"comment":{"url":"https://api.github.com/repos/restify/node-restify/issues/comments/162035897","html_url":"https://github.com/restify/node-restify/pull/963#issuecomment-162035897","issue_url":"https://api.github.com/repos/restify/node-restify/issues/963","id":162035897,"user":{"login":"jameswomack","id":77849,"avatar_url":"https://avatars.githubusercontent.com/u/77849?v=3","gravatar_id":"","url":"https://api.github.com/users/jameswomack","html_url":"https://github.com/jameswomack","followers_url":"https://api.github.com/users/jameswomack/followers","following_url":"https://api.github.com/users/jameswomack/following{/other_user}","gists_url":"https://api.github.com/users/jameswomack/gists{/gist_id}","starred_url":"https://api.github.com/users/jameswomack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameswomack/subscriptions","organizations_url":"https://api.github.com/users/jameswomack/orgs","repos_url":"https://api.github.com/users/jameswomack/repos","events_url":"https://api.github.com/users/jameswomack/events{/privacy}","received_events_url":"https://api.github.com/users/jameswomack/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T18:00:02Z","updated_at":"2015-12-04T18:00:02Z","body":"It looks like an unrelated test in server.test.js is failed in Node 4 & 5\r\n\r\n```\r\n✖ use - throws TypeError on non function as argument\r\nTypeError: Cannot assign to read only property 'name' of function (arg, msg) {\r\n            if (!arg) {\r\n                _toss(msg, 'true', arg);\r\n            }\r\n        }\r\n    at Function.AssertionError (assert.js:45:13)\r\n    at Object.<anonymous> (/home/travis/build/restify/node-restify/test/server.test.js:205:22)\r\n    at Domain.<anonymous> (/home/travis/build/restify/node-restify/test/lib/helper.js:73:24)\r\n    at Domain.run (domain.js:221:14)\r\n    at Object._ (/home/travis/build/restify/node-restify/test/lib/helper.js:65:15)\r\n    at /home/travis/build/restify/node-restify/node_modules/nodeunit/lib/core.js:232:20\r\n    at /home/travis/build/restify/node-restify/node_modules/nodeunit/deps/async.js:168:13\r\n    at /home/travis/build/restify/node-restify/node_modules/nodeunit/deps/async.js:131:25\r\n    at /home/travis/build/restify/node-restify/node_modules/nodeunit/deps/async.js:165:17\r\n    at /home/travis/build/restify/node-restify/node_modules/nodeunit/deps/async.js:463:34\r\n```"}}