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.
Interface representing an HTTP request handler.
Implementations of this interface define how to handle HTTP requests.
-
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpRequest request) Handles an HTTP request and returns an HTTP response.
-
Method Details
-
handle
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
-