RouteRegistry

class Object
trait Matchable
class Any

Value members

Concrete methods

def addStatusRoute(codes: Range, route: Route): Unit

Add a route that explicitly matches one or more response codes.

Add a route that explicitly matches one or more response codes.

Returns the sequence of filters to run after the route.

Returns the sequence of filters to run after the route.

def appendAfterFilter(route: Route): Unit

Appends a filter to the sequence of before filters.

Appends a filter to the sequence of before filters.

def appendBeforeFilter(route: Route): Unit

Appends a filter to the sequence of before filters.

Appends a filter to the sequence of before filters.

def apply(method: HttpMethod): Seq[Route]

Returns the sequence of routes registered for the specified method.

Returns the sequence of routes registered for the specified method.

HEAD must be identical to GET without a body, so HEAD returns GET's routes.

def apply(statusCode: Int): Option[Route]

Return a route for a specific HTTP response status code.

Return a route for a specific HTTP response status code.

Value parameters:
statusCode

the status code.

Returns the sequence of filters to run before the route.

Returns the sequence of filters to run before the route.

def entryPoints: Seq[String]

List of entry points, made of all route matchers

List of entry points, made of all route matchers

def matchingMethods(requestPath: String): Set[HttpMethod]

Returns a set of methods with a matching route.

Returns a set of methods with a matching route.

HEAD must be identical to GET without a body, so GET implies HEAD.

def matchingMethodsExcept(method: HttpMethod, requestPath: String): Set[HttpMethod]

Returns a set of methods with a matching route minus a specified method.

Returns a set of methods with a matching route minus a specified method.

HEAD must be identical to GET without a body, so:

  • GET implies HEAD
  • filtering one filters the other
def methodRoutes: Map[HttpMethod, Seq[Route]]
def prependRoute(method: HttpMethod, route: Route): Unit

Prepends a route to the method's route sequence.

Prepends a route to the method's route sequence.

def removeRoute(method: HttpMethod, route: Route): Unit

Removes a route from the method's route sequence.

Removes a route from the method's route sequence.

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