Interface Route

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 Route
What answers one matched request.
Since:
1.0.0
  • Method Details

    • handle

      Response handle(Request request, Map<String,String> path, Env env, ExecutionCtx ctx)
      Answers the request.
      Parameters:
      request - the request
      path - what the pattern captured, by parameter name without the colon; empty for a pattern with no parameters
      env - the bindings
      ctx - the invocation context
      Returns:
      the response