Package io.inversion

Interface Api.ApiListener

All Known Subinterfaces:
Engine.EngineListener
Enclosing class:
Api

public static interface Api.ApiListener
Listener that can be registered with an Api to receive lifecycle, per request and per error callback notifications.
  • Method Details

    • onStartup

      default void onStartup(Api api)
    • onShutdown

      default void onShutdown(Api api)
    • afterRequest

      default void afterRequest(Request req, Response res)
    • afterError

      default void afterError(Request req, Response res)
    • beforeFinally

      default void beforeFinally(Request req, Response res)