Class KHTTPServerThreadSample

All Implemented Interfaces:
AutoCloseable, Runnable

public class KHTTPServerThreadSample extends KHTTPServerThread
Simple HTTP web server to serve files.
Since:
2025.04.12
  • Constructor Details

    • KHTTPServerThreadSample

      public KHTTPServerThreadSample(Socket argSocket)
      Thread constructor.
      Parameters:
      argSocket - Socket passed by the KSocketServerListener during thread initialization
  • Method Details

    • get

      public void get(String argURL)
      HTTP GET method: Send file.
      Overrides:
      get in class KHTTPServerThread
      Parameters:
      argURL - Passed URL e.g. "/test/s=any"