code: protected HttpConnection createConnection(Socket socket)
          throws IOException
      {
          HttpConnection c = new HttpConnection(this,
                                    socket.getInetAddress(),
                                    socket.getInputStream(),
                                    socket.getOutputStream(),
                                    socket);
          return c;
      }
docs: Create an HttpConnection instance. This method can be used to
  override the connection instance.
  @param socket The underlying socket.