Package kos.api

Interface RequestInterceptor

All Known Implementing Classes:
SimplifiedRouter.SafeRequestInterceptor

public interface RequestInterceptor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(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 the next interceptor 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 object
      next - Next interceptor in the chain.