title: Set custom socket implementation in HttpUrlConnection
body: <p>Looking for java networking experts here :)</p>
  
  <p>The team that I'm part of is developing a solution which consists of server part and a small client API (and api-impl) bundle that our customers must deploy and use in order to make http requests to the server part.</p>
  
  <p>One of our customers who uses the API is asking us to provide him with a new method for setting a custom Socket implementation, so that the actual http communication with the server part can go through his Socket. Until now, we used HttpsUrlConnection to connect to the server part. The question is - is it possible to somehow supply the HttpsUrlConnection with a custom socket implementation instead of the default one? What are the alternatives? Is Apache HttpClient able to do this?</p>