{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2510","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2510/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2510/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2510/events","html_url":"https://github.com/hapijs/hapi/issues/2510","id":69797671,"number":2510,"title":"Hapi and Support of HTTP/2","user":{"login":"jmorille","id":538320,"avatar_url":"https://avatars.githubusercontent.com/u/538320?v=3","gravatar_id":"","url":"https://api.github.com/users/jmorille","html_url":"https://github.com/jmorille","followers_url":"https://api.github.com/users/jmorille/followers","following_url":"https://api.github.com/users/jmorille/following{/other_user}","gists_url":"https://api.github.com/users/jmorille/gists{/gist_id}","starred_url":"https://api.github.com/users/jmorille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmorille/subscriptions","organizations_url":"https://api.github.com/users/jmorille/orgs","repos_url":"https://api.github.com/users/jmorille/repos","events_url":"https://api.github.com/users/jmorille/events{/privacy}","received_events_url":"https://api.github.com/users/jmorille/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/hapi/labels/question","name":"question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-04-21T09:43:06Z","updated_at":"2016-01-20T22:16:04Z","closed_at":"2015-04-21T16:17:21Z","body":"Hello,\r\n\r\nDoes Hapy have any support of HTTP/2 in natif or by plugins ?\r\n\r\nThank by advance"},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/173379410","html_url":"https://github.com/hapijs/hapi/issues/2510#issuecomment-173379410","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/2510","id":173379410,"user":{"login":"mikefrey","id":62940,"avatar_url":"https://avatars.githubusercontent.com/u/62940?v=3","gravatar_id":"","url":"https://api.github.com/users/mikefrey","html_url":"https://github.com/mikefrey","followers_url":"https://api.github.com/users/mikefrey/followers","following_url":"https://api.github.com/users/mikefrey/following{/other_user}","gists_url":"https://api.github.com/users/mikefrey/gists{/gist_id}","starred_url":"https://api.github.com/users/mikefrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikefrey/subscriptions","organizations_url":"https://api.github.com/users/mikefrey/orgs","repos_url":"https://api.github.com/users/mikefrey/repos","events_url":"https://api.github.com/users/mikefrey/events{/privacy}","received_events_url":"https://api.github.com/users/mikefrey/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T22:16:04Z","updated_at":"2016-01-20T22:16:04Z","body":"@casalot I had luck doing this: \r\n\r\n```js\r\n'use strict'\r\nconst fs = require('fs')\r\nconst Hapi = require('hapi')\r\nconst Http2 = require('http2')\r\nconst server = new Hapi.Server()\r\n\r\nlet listener = Http2.createServer({\r\n  key: fs.readFileSync('./key.pem'),\r\n  cert: fs.readFileSync('./cert.pem')\r\n})\r\n\r\nif (!listener.address) {\r\n  listener.address = function() {\r\n    return this._server.address()\r\n  }\r\n}\r\n\r\nserver.connection({\r\n  listener: listener,\r\n  port: '8000',\r\n  tls: true\r\n})\r\n\r\nserver.route({\r\n  method: 'GET',\r\n  path: '/',\r\n  handler: (request, reply) => reply('hello world')\r\n})\r\n\r\nserver.start(err => {\r\n  if (err) console.error(err)\r\n  console.log(`Started ${server.connections.length} connections`)\r\n})\r\n```"}}