The docs for the module say:

Defines the JDK-specific HTTP server API, and provides the jwebserver tool
> for running a minimal HTTP server.
>
> The com.sun.net.httpserver
> <https://docs.oracle.com/en/java/javase/23/docs/api/jdk.httpserver/com/sun/net/httpserver/package-summary.html>
>  package
> defines a high-level API for building servers that support HTTP and HTTPS.
> The SimpleFileServer class implements a simple HTTP-only file server
> intended for testing, development and debugging purposes.
>

It's not apparent from reading the javadocs that the entire jdk.httpserver
module is meant for testing and serving local content.
-- 
Cheers, Josiah.

Reply via email to