RouteConcatenation

pl.iterators.stir.server.directives.RouteConcatenation
See theRouteConcatenation companion object

Attributes

Companion
object
Source
RouteConcatenation.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object RouteConcatenation.type
trait Directives
object Directives.type

Members list

Type members

Classlikes

implicit class RouteWithConcatenation(val route: Route)

Attributes

Source
RouteConcatenation.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete 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

Source
RouteConcatenation.scala

Implicits

Implicits

Attributes

Source
RouteConcatenation.scala