RequestPredicate

fun interface RequestPredicate

Represents a function that evaluates on a given ServerRequest.

Instances of this function that evaluate on common request properties can be found in RequestPredicates.

Inspired by Spring org.springframework.web.servlet.function.RequestPredicate.

Functions

Link copied to clipboard

Return a composed request predicate that tests against both this predicate AND the other predicate. When evaluating the composed predicate, if this predicate is false, then the other predicate is not evaluated.

Link copied to clipboard

Return a predicate that represents the logical negation of this predicate.

Link copied to clipboard

Return a composed request predicate that tests against both this predicate OR the other predicate. When evaluating the composed predicate, if this predicate is true, then the other predicate is not evaluated.

Link copied to clipboard
abstract fun test(request: ServerRequest): Boolean

Evaluate this predicate on the given request.