public static void main()

in jbang/http-streaming/MyHttpServer.java [27:33]


  public static void main(String[] args) throws Exception {
      HttpServer server = HttpServer.create(new InetSocketAddress(8500), 0);
      HttpContext context = server.createContext("/");
      context.setHandler(MyHttpServer::handleRequest);
      System.out.println("http://localhost:8500");
      server.start();
  }