Overview of Java 18 Simple Web Server
Java 18 introduces a Simple Web Server designed for educational or informal tasks. It is a minimal HTTP server that serves a single directory hierarchy. It is based on the com.sun.net.httpserver package.
Constraints and Limitations:
- Not intended to replace commercial servers like Jetty, Nginx, or Apache Tomcat.
- No security features (no authentication, access control, or encryption).
- Supports HTTP/1.1 only (no HTTPS).
- Supports only GET and HEAD requests; other methods return 501 Not Implemented or 405 Not Allowed.