object RouteConcatenation extends RouteConcatenation
- Source
- RouteConcatenation.scala
Linear Supertypes
Ordering
- Grouped
- Alphabetic
- By Inheritance
Inherited
- RouteConcatenation
- RouteConcatenation
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Route concatenation
- implicit def _enhanceRouteWithConcatenation(route: Route): RouteWithConcatenation
- Definition Classes
- RouteConcatenation
Ungrouped
- class RouteWithConcatenation extends AnyRef
- def concat(routes: Route*): Route
Tries the supplied routes in sequence, returning the result of the first route that doesn't reject the request.
Tries the supplied routes in sequence, returning the result of the first route that doesn't reject the request. This is an alternative to direct usage of the infix ~ operator. The ~ can be prone to programmer error, because if it is omitted, the program will still be syntactically correct, but will not actually attempt to match multiple routes, as intended.
- routes
subroutes to concatenate
- returns
the concatenated route
- Definition Classes
- RouteConcatenation