Set the URI

Report a typo

What path must you write instead of the underscores in the first createContext() argument if you have a http://127.0.0.2:8001/payment?price=1000 URI?

InetAddress localAddress = InetAddress.getByName("127.0.0.2");
HttpServer server = HttpServer.create(new InetSocketAddress(localAddress, 8001), 0);

HttpContext context = server.createContext("____", new MyNewHttpHandler());
Enter a short text
___

Create a free account to access the full topic