Interface HttpServer.Handler

    • Method Detail

      • serveRequest

        HttpServer.Response serveRequest​(HttpServer.Request request)
        Provides a response to an HTTP request. A handler which does not recognise the URL should simply return null; in this case there may be another handler which is able to serve the request. If the URL appears to be in this handler's domain but the request cannot be served for some reason, an error response should be returned.
        Parameters:
        request - HTTP request
        Returns:
        response response to request, or null