Interface RequestHandler<T,U>

Type Parameters:
T - The type of the request body.
U - The type of the response body.
All Known Subinterfaces:
DynamicPathRequestHandler<T,U>
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 RequestHandler<T,U>
A function used to handle HTTP requests.
  • Method Summary

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

    • handleRequest

      Response<U> handleRequest(Request<T> request)
      Handles an HTTP request.
      Parameters:
      request - The HTTP request.
      Returns:
      The HTTP response.