{"action":"created","issue":{"url":"https://api.github.com/repos/searchbox-io/Jest/issues/251","labels_url":"https://api.github.com/repos/searchbox-io/Jest/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/searchbox-io/Jest/issues/251/comments","events_url":"https://api.github.com/repos/searchbox-io/Jest/issues/251/events","html_url":"https://github.com/searchbox-io/Jest/issues/251","id":114944281,"number":251,"title":"Accept existing SSLConnectionSocketFactory / HttpClient","user":{"login":"poblish","id":152762,"avatar_url":"https://avatars.githubusercontent.com/u/152762?v=3","gravatar_id":"","url":"https://api.github.com/users/poblish","html_url":"https://github.com/poblish","followers_url":"https://api.github.com/users/poblish/followers","following_url":"https://api.github.com/users/poblish/following{/other_user}","gists_url":"https://api.github.com/users/poblish/gists{/gist_id}","starred_url":"https://api.github.com/users/poblish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poblish/subscriptions","organizations_url":"https://api.github.com/users/poblish/orgs","repos_url":"https://api.github.com/users/poblish/repos","events_url":"https://api.github.com/users/poblish/events{/privacy}","received_events_url":"https://api.github.com/users/poblish/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/searchbox-io/Jest/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-04T00:50:30Z","updated_at":"2015-11-04T09:45:59Z","closed_at":null,"body":"Hi there,\r\n\r\nThere doesn't seem to be any way of constructing a `JestClientFactory` without a `HttpClientConfig.Builder`, which unavoidably calls `sslSocketFactory = SSLConnectionSocketFactory.getSocketFactory()` on instantiation. That's fair enough, but I already have a fully formed `HttpClient`, complete with a `SSLConnectionSocketFactory` (and custom `HostnameVerifier`), so it would be nicer/faster/more efficient if I could simply pass in either of the existing  SSLConnectionSocketFactory or HttpClient.\r\n\r\nIs there any way this can be done?"},"comment":{"url":"https://api.github.com/repos/searchbox-io/Jest/issues/comments/153662300","html_url":"https://github.com/searchbox-io/Jest/issues/251#issuecomment-153662300","issue_url":"https://api.github.com/repos/searchbox-io/Jest/issues/251","id":153662300,"user":{"login":"poblish","id":152762,"avatar_url":"https://avatars.githubusercontent.com/u/152762?v=3","gravatar_id":"","url":"https://api.github.com/users/poblish","html_url":"https://github.com/poblish","followers_url":"https://api.github.com/users/poblish/followers","following_url":"https://api.github.com/users/poblish/following{/other_user}","gists_url":"https://api.github.com/users/poblish/gists{/gist_id}","starred_url":"https://api.github.com/users/poblish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poblish/subscriptions","organizations_url":"https://api.github.com/users/poblish/orgs","repos_url":"https://api.github.com/users/poblish/repos","events_url":"https://api.github.com/users/poblish/events{/privacy}","received_events_url":"https://api.github.com/users/poblish/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T09:45:59Z","updated_at":"2015-11-04T09:45:59Z","body":"Sorry, I probably wasn't clear enough. Yes, though I can overwrite it with my own, I'm really trying to prevent the default SSLConnectionSocketFactory getting created _at all_, because it's relatively expensive. I imagine the Builder could be changed to only create it lazily (e.g. on `build()`), but I wondered if there was a workaround..."}}