- 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 HttpFilterHandlerA route filter, meant to validate or handle incoming HTTP requests matching some
set of preconditions.
Future<?> handle(HttpServiceRequest request, HttpServiceResponse response) throws java.lang.ExceptionCalled with an incoming HTTP request and a response handler.
request- Information about the incoming HTTP request.
response- An object useful for indicating how the request is to be responded to. If a status code is set by this handler, the provided request is responded to as soon as this handler completes, which implies that no more filters or any route is invoked with the request.
- Future completed when filtering is complete.
java.lang.Exception- The exception should be passed on to any matching