{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/20795","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/20795/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/20795/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/20795/events","html_url":"https://github.com/nodejs/node/issues/20795","id":323846055,"number":20795,"title":"http: Using URL with http.request (feature suggestion)","user":{"login":"ronkorving","id":631240,"avatar_url":"https://avatars0.githubusercontent.com/u/631240?v=4","gravatar_id":"","url":"https://api.github.com/users/ronkorving","html_url":"https://github.com/ronkorving","followers_url":"https://api.github.com/users/ronkorving/followers","following_url":"https://api.github.com/users/ronkorving/following{/other_user}","gists_url":"https://api.github.com/users/ronkorving/gists{/gist_id}","starred_url":"https://api.github.com/users/ronkorving/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronkorving/subscriptions","organizations_url":"https://api.github.com/users/ronkorving/orgs","repos_url":"https://api.github.com/users/ronkorving/repos","events_url":"https://api.github.com/users/ronkorving/events{/privacy}","received_events_url":"https://api.github.com/users/ronkorving/received_events","type":"User","site_admin":false},"labels":[{"id":207445406,"url":"https://api.github.com/repos/nodejs/node/labels/feature%20request","name":"feature request","color":"0D7BDE","default":false},{"id":155267422,"url":"https://api.github.com/repos/nodejs/node/labels/http","name":"http","color":"c7def8","default":false},{"id":512071972,"url":"https://api.github.com/repos/nodejs/node/labels/url-whatwg","name":"url-whatwg","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-17T02:00:46Z","updated_at":"2018-05-17T07:00:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--\r\nThank you for reporting an issue.\r\n\r\nThis issue tracker is for bugs and issues found within Node.js core.\r\nIf you require more general support please file an issue on our help\r\nrepo. https://github.com/nodejs/help\r\n\r\n\r\nPlease fill in as much of the template below as you're able.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you are able.\r\n-->\r\n\r\n* **Version**: v10.1.0\r\n* **Platform**: all\r\n* **Subsystem**: http\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n\r\nUsing `URL` objects is clearly the way to go when it comes to dealing with URLs, and `http.request()` can take a `URL` object as input. This is great. But if I want to also send custom headers, I'm stuck. I would like to suggest an option for the options object called `url` that can be set to URL object and maybe even a string. I don't really want to make an already complex API more complex, but I'm not sure how else we can make it easier to use URL objects with HTTP requests.\r\n\r\nFeedback, suggestions, thoughts from @nodejs/collaborators very welcome."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/389765311","html_url":"https://github.com/nodejs/node/issues/20795#issuecomment-389765311","issue_url":"https://api.github.com/repos/nodejs/node/issues/20795","id":389765311,"user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars0.githubusercontent.com/u/52195?v=4","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T07:00:10Z","updated_at":"2018-05-17T07:00:10Z","author_association":"MEMBER","body":"I'm 👍 for a 3-arg signature."}}
{"actor":{"display_login":"mcollina"}}