Testing static sites or webhooks locally used to require Python's http.server or an external framework. Since Java 18 (JEP 408), the JDK ships jwebserver and SimpleFileServer right out of the box—plus DataInputStream/DataOutputStream makes binary TCP framing effortless.
More lessons in Complete Core Java