invoke

operator fun RequestPredicate.invoke(f: (ServerRequest) -> ServerResponse)

Route to the given handler function if the given request predicate applies.

See also


operator fun String.invoke(f: (ServerRequest) -> ServerResponse)

Route to the given handler function if the given predicate (String processed as a path predicate) applies.

See also