Module jdk.httpserver


module jdk.httpserver
Defines the JDK-specific HTTP server API, and provides the jwebserver tool for running a minimal HTTP server.

The com.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 the jwebserver tool and the main entry point of the module, which can also be invoked with java -m jdk.httpserver.

The com.sun.net.httpserver.spi package specifies a Service Provider Interface (SPI) for locating HTTP server implementations based on the com.sun.net.httpserver API.

Module Graph:
Module graph for jdk.httpserverModule graph for jdk.httpserver
Tool Guides:
jwebserver
Since:
9
  • Packages

    Exports
    Package
    Description
    Provides 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
    Type
    Description
    Service provider class for HttpServer.