public String getEndpoint() {
    return (https ? "https" : "http") + "://localhost:" + serverSocket.getLocalPort();
  }
Simple local web server for testing.
jib-core/src/test/java/com/google/cloud/tools/jib/http/TestWebServer.java