{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/1101","labels_url":"https://api.github.com/repos/iojs/io.js/issues/1101/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/1101/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/1101/events","html_url":"https://github.com/iojs/io.js/pull/1101","id":60273716,"number":1101,"title":"http: allow HTTP to return an HTTPS server","user":{"login":"brendanashworth","id":3038254,"avatar_url":"https://avatars.githubusercontent.com/u/3038254?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanashworth","html_url":"https://github.com/brendanashworth","followers_url":"https://api.github.com/users/brendanashworth/followers","following_url":"https://api.github.com/users/brendanashworth/following{/other_user}","gists_url":"https://api.github.com/users/brendanashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanashworth/subscriptions","organizations_url":"https://api.github.com/users/brendanashworth/orgs","repos_url":"https://api.github.com/users/brendanashworth/repos","events_url":"https://api.github.com/users/brendanashworth/events{/privacy}","received_events_url":"https://api.github.com/users/brendanashworth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iojs/io.js/labels/http","name":"http","color":"c7def8"},{"url":"https://api.github.com/repos/iojs/io.js/labels/https","name":"https","color":"0052cc"},{"url":"https://api.github.com/repos/iojs/io.js/labels/semver-minor","name":"semver-minor","color":"fef2c0"},{"url":"https://api.github.com/repos/iojs/io.js/labels/tc-agenda","name":"tc-agenda","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-03-08T20:10:02Z","updated_at":"2015-04-04T21:20:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/iojs/io.js/pulls/1101","html_url":"https://github.com/iojs/io.js/pull/1101","diff_url":"https://github.com/iojs/io.js/pull/1101.diff","patch_url":"https://github.com/iojs/io.js/pull/1101.patch"},"body":"This commit allows the `http` module to create a HTTPS server\r\nif TLS options are passed to `createServer()` or the `Server()`\r\nconstructor.\r\n\r\nAdoption of [joyent/node#8738](https://github.com/joyent/node/pull/8738). /cc @cjihrig \r\nThe second commit contains rebase edits, code style edits, etc that has happened in the past few months."},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/89669183","html_url":"https://github.com/iojs/io.js/pull/1101#issuecomment-89669183","issue_url":"https://api.github.com/repos/iojs/io.js/issues/1101","id":89669183,"user":{"login":"brendanashworth","id":3038254,"avatar_url":"https://avatars.githubusercontent.com/u/3038254?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanashworth","html_url":"https://github.com/brendanashworth","followers_url":"https://api.github.com/users/brendanashworth/followers","following_url":"https://api.github.com/users/brendanashworth/following{/other_user}","gists_url":"https://api.github.com/users/brendanashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanashworth/subscriptions","organizations_url":"https://api.github.com/users/brendanashworth/orgs","repos_url":"https://api.github.com/users/brendanashworth/repos","events_url":"https://api.github.com/users/brendanashworth/events{/privacy}","received_events_url":"https://api.github.com/users/brendanashworth/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T21:20:28Z","updated_at":"2015-04-04T21:20:28Z","body":"@Fishrock123 I think that'd be awkward, personally. IMHO, I think the best solution to this would be rather:\r\n```javascript\r\nvar server = require('http').createServer(function() {});\r\n\r\nserver.listen(443, {tls: true, ca: ...});\r\n```\r\n\r\nThat would require a big structural change to the whole thing, though."}}