RouteConcatenation

pl.iterators.stir.server.RouteConcatenation
See theRouteConcatenation companion trait

Attributes

Companion
trait
Source
RouteConcatenation.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited classlikes

implicit class RouteWithConcatenation(val route: Route)

Attributes

Inherited from:
RouteConcatenation
Source
RouteConcatenation.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def concat(routes: Route*): Route

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.

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.

Value parameters

routes

subroutes to concatenate

Attributes

Returns

the concatenated route

Inherited from:
RouteConcatenation
Source
RouteConcatenation.scala

Implicits

Inherited implicits

Attributes

Inherited from:
RouteConcatenation
Source
RouteConcatenation.scala