route

Create a Router.Builder to define routes.


fun route(predicate: RequestPredicate, handlerFunction: ExchangeHandler): RouterHandler

Create a RouterHandler invoking the specified ExchangeHandler when the specified RequestPredicate matches.