{"action":"created","issue":{"url":"https://api.github.com/repos/httprb/http/issues/274","labels_url":"https://api.github.com/repos/httprb/http/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/httprb/http/issues/274/comments","events_url":"https://api.github.com/repos/httprb/http/issues/274/events","html_url":"https://github.com/httprb/http/pull/274","id":122857080,"number":274,"title":"add socket_factory option","user":{"login":"nerdrew","id":10101,"avatar_url":"https://avatars.githubusercontent.com/u/10101?v=3","gravatar_id":"","url":"https://api.github.com/users/nerdrew","html_url":"https://github.com/nerdrew","followers_url":"https://api.github.com/users/nerdrew/followers","following_url":"https://api.github.com/users/nerdrew/following{/other_user}","gists_url":"https://api.github.com/users/nerdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/nerdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerdrew/subscriptions","organizations_url":"https://api.github.com/users/nerdrew/orgs","repos_url":"https://api.github.com/users/nerdrew/repos","events_url":"https://api.github.com/users/nerdrew/events{/privacy}","received_events_url":"https://api.github.com/users/nerdrew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-18T01:15:45Z","updated_at":"2015-12-18T02:23:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/httprb/http/pulls/274","html_url":"https://github.com/httprb/http/pull/274","diff_url":"https://github.com/httprb/http/pull/274.diff","patch_url":"https://github.com/httprb/http/pull/274.patch"},"body":"Add an option for custom socket creation, e.g.\r\n\r\n```\r\nHTTP::Client.new(socket_factory: lambda { |host, port|\r\n  sock = TCPSocket.open(host, port)\r\n  sock.setsockopt(Socket::Option.int(:INET, Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1))\r\n  sock\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/httprb/http/issues/comments/165648995","html_url":"https://github.com/httprb/http/pull/274#issuecomment-165648995","issue_url":"https://api.github.com/repos/httprb/http/issues/274","id":165648995,"user":{"login":"ixti","id":94782,"avatar_url":"https://avatars.githubusercontent.com/u/94782?v=3","gravatar_id":"","url":"https://api.github.com/users/ixti","html_url":"https://github.com/ixti","followers_url":"https://api.github.com/users/ixti/followers","following_url":"https://api.github.com/users/ixti/following{/other_user}","gists_url":"https://api.github.com/users/ixti/gists{/gist_id}","starred_url":"https://api.github.com/users/ixti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ixti/subscriptions","organizations_url":"https://api.github.com/users/ixti/orgs","repos_url":"https://api.github.com/users/ixti/repos","events_url":"https://api.github.com/users/ixti/events{/privacy}","received_events_url":"https://api.github.com/users/ixti/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T02:23:33Z","updated_at":"2015-12-18T02:23:33Z","body":"In fact I think we should have only `socket_options()` API (no sugar)."}}