Module jdk.httpserver
modulejdk.httpserver
Defines the JDK-specific HTTP server API, and provides the jwebserver tool for running a minimal HTTP server.
Thecom.sun.net.httpserver 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. A default implementation is provided via thejwebserver tool and the main entry point of the module, which can also be invoked withjava -m jdk.httpserver.
Thecom.sun.net.httpserver.spi package specifies a Service Provider Interface (SPI) for locating HTTP server implementations based on thecom.sun.net.httpserver API.
- Module Graph:
- Tool Guides:
- jwebserver
- Since:
- 9
Packages
ExportsPackageDescriptionProvides a simple high-level Http server API, which can be used to build embedded HTTP servers.Provides a pluggable service provider interface, which allows the HTTP server implementation to be replaced with other implementations.Services
Uses