Interface HttpRequestHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HttpRequestHandler
Interface representing an HTTP request handler. Implementations of this interface define how to handle HTTP requests.
  • Method Summary

    Modifier and Type
    Method
    Description
    Handles an HTTP request and returns an HTTP response.
  • Method Details

    • handle

      HttpResponse handle(HttpRequest request)
      Handles an HTTP request and returns an HTTP response.
      Parameters:
      request - the HTTP request to handle
      Returns:
      the HTTP response generated by handling the request