BooleanBlockRouteMatcher

final class BooleanBlockRouteMatcher(block: => Boolean) extends RouteMatcher

A route matcher on a boolean condition. Does not extract any route parameters.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(requestPath: String): Option[MultiParams]

Evaluates the block.

Evaluates the block.

Returns:

Some empty map if the block evaluates to true, or else None.

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any

Inherited methods

def apply(route: Route): Route
Inherited from:
RouteMatcher