payload: {"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/got/issues/167","repository_url":"https://api.github.com/repos/sindresorhus/got","labels_url":"https://api.github.com/repos/sindresorhus/got/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/got/issues/167/comments","events_url":"https://api.github.com/repos/sindresorhus/got/issues/167/events","html_url":"https://github.com/sindresorhus/got/issues/167","id":131301141,"node_id":"MDU6SXNzdWUxMzEzMDExNDE=","number":167,"title":"HTTP2 support","user":{"login":"gunta","id":657059,"node_id":"MDQ6VXNlcjY1NzA1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/657059?v=4","gravatar_id":"","url":"https://api.github.com/users/gunta","html_url":"https://github.com/gunta","followers_url":"https://api.github.com/users/gunta/followers","following_url":"https://api.github.com/users/gunta/following{/other_user}","gists_url":"https://api.github.com/users/gunta/gists{/gist_id}","starred_url":"https://api.github.com/users/gunta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunta/subscriptions","organizations_url":"https://api.github.com/users/gunta/orgs","repos_url":"https://api.github.com/users/gunta/repos","events_url":"https://api.github.com/users/gunta/events{/privacy}","received_events_url":"https://api.github.com/users/gunta/received_events","type":"User","site_admin":false},"labels":[{"id":1355409376,"node_id":"MDU6TGFiZWwxMzU1NDA5Mzc2","url":"https://api.github.com/repos/sindresorhus/got/labels/:dollar:%20Funded%20on%20Issuehunt","name":":dollar: Funded on Issuehunt","color":"e5fbf2","default":false},{"id":88753461,"node_id":"MDU6TGFiZWw4ODc1MzQ2MQ==","url":"https://api.github.com/repos/sindresorhus/got/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":1033451283,"node_id":"MDU6TGFiZWwxMDMzNDUxMjgz","url":"https://api.github.com/repos/sindresorhus/got/labels/work%20in%20progress","name":"work in progress","color":"ffa11e","default":false}],"state":"open","locked":false,"assignee":{"login":"szmarczak","id":36894700,"node_id":"MDQ6VXNlcjM2ODk0NzAw","avatar_url":"https://avatars0.githubusercontent.com/u/36894700?v=4","gravatar_id":"","url":"https://api.github.com/users/szmarczak","html_url":"https://github.com/szmarczak","followers_url":"https://api.github.com/users/szmarczak/followers","following_url":"https://api.github.com/users/szmarczak/following{/other_user}","gists_url":"https://api.github.com/users/szmarczak/gists{/gist_id}","starred_url":"https://api.github.com/users/szmarczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szmarczak/subscriptions","organizations_url":"https://api.github.com/users/szmarczak/orgs","repos_url":"https://api.github.com/users/szmarczak/repos","events_url":"https://api.github.com/users/szmarczak/events{/privacy}","received_events_url":"https://api.github.com/users/szmarczak/received_events","type":"User","site_admin":false},"assignees":[{"login":"szmarczak","id":36894700,"node_id":"MDQ6VXNlcjM2ODk0NzAw","avatar_url":"https://avatars0.githubusercontent.com/u/36894700?v=4","gravatar_id":"","url":"https://api.github.com/users/szmarczak","html_url":"https://github.com/szmarczak","followers_url":"https://api.github.com/users/szmarczak/followers","following_url":"https://api.github.com/users/szmarczak/following{/other_user}","gists_url":"https://api.github.com/users/szmarczak/gists{/gist_id}","starred_url":"https://api.github.com/users/szmarczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szmarczak/subscriptions","organizations_url":"https://api.github.com/users/szmarczak/orgs","repos_url":"https://api.github.com/users/szmarczak/repos","events_url":"https://api.github.com/users/szmarczak/events{/privacy}","received_events_url":"https://api.github.com/users/szmarczak/received_events","type":"User","site_admin":false}],"milestone":null,"comments":47,"created_at":"2016-02-04T10:16:13Z","updated_at":"2019-05-29T05:23:38Z","closed_at":null,"author_association":"NONE","body":"<!-- Issuehunt Badges -->\n\n[<img alt=\"Issuehunt badges\" src=\"https://issuehunt.io/r/sindresorhus/got/issues/167/badge.svg\" />](https://issuehunt.io/r/sindresorhus/got/issues/167)\n\n<!-- /Issuehunt Badges -->\n\nHi!\n\nCan you consider adding `HTTP2` support to GOT?\nCurrently the most used client library is this: https://github.com/molnarg/node-http2\n\nThank you!\n<!-- Issuehunt content -->\n\n\n\n> There is a $200.00 open bounty on this issue. Add more on [Issuehunt](https://issuehunt.io/r/sindresorhus/got/issues/167).\n> - Checkout the [Issuehunt explorer](https://issuehunt.io/r/sindresorhus/got/) to discover more funded issues.\n> - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on Issuehunt to raise funds.\n\n\n<!-- /Issuehunt content-->"},"comment":{"url":"https://api.github.com/repos/sindresorhus/got/issues/comments/496788921","html_url":"https://github.com/sindresorhus/got/issues/167#issuecomment-496788921","issue_url":"https://api.github.com/repos/sindresorhus/got/issues/167","id":496788921,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5Njc4ODkyMQ==","user":{"login":"szmarczak","id":36894700,"node_id":"MDQ6VXNlcjM2ODk0NzAw","avatar_url":"https://avatars0.githubusercontent.com/u/36894700?v=4","gravatar_id":"","url":"https://api.github.com/users/szmarczak","html_url":"https://github.com/szmarczak","followers_url":"https://api.github.com/users/szmarczak/followers","following_url":"https://api.github.com/users/szmarczak/following{/other_user}","gists_url":"https://api.github.com/users/szmarczak/gists{/gist_id}","starred_url":"https://api.github.com/users/szmarczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szmarczak/subscriptions","organizations_url":"https://api.github.com/users/szmarczak/orgs","repos_url":"https://api.github.com/users/szmarczak/repos","events_url":"https://api.github.com/users/szmarczak/events{/privacy}","received_events_url":"https://api.github.com/users/szmarczak/received_events","type":"User","site_admin":false},"created_at":"2019-05-29T05:23:38Z","updated_at":"2019-05-29T05:23:38Z","author_association":"COLLABORATOR","body":"> could you explain why agent would prevent sockets from being reused? My understanding is that it's the opposite: agent with keepAlive: true is required to reuse sockets?\r\n\r\nI mean it reuses sockets for HTTP2. But to reuse sockets for HTTP1 you need to provide another agent because the H2 agent is not compatible with H1 agent. So in total there will be two sockets.\r\n\r\nReusing H2 sockets for H1 is a bad idea because H2 sockets must **not** be malformed. There are different settings for H2 and H1...\r\n\r\nAnother example: imagine all seats for free sessions are taken and you've just finished your request. The session is free and it's being closed. If there's some pending H1 request it will throw an error. \r\n\r\n> The same DNS name can point to many IPs, some of which can have one config, and some of which can have another.\r\n\r\nGood point.\r\n\r\n> Similarly, the same IP can change configuration over time, which matters for long running applications that are up for weeks or months.\r\n\r\nI'll look into this."}}
other: {"actor":{"display_login":"szmarczak"}}