Package kos.api
Interface RequestInterceptor
- All Known Implementing Classes:
SimplifiedRouter.SafeRequestInterceptor
public interface RequestInterceptor
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(io.vertx.core.http.HttpServerRequest request, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> next) Handles a request.
-
Method Details
-
handle
void handle(io.vertx.core.http.HttpServerRequest request, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> next) Handles a request. If thenextinterceptor in the chain were not called, the request will be interrupted. Please make sure you have sent a response to the client if you choose to interrupt the request chain.- Parameters:
request- Request objectnext- Next interceptor in the chain.
-