invoke

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

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

See also


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

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

See also