RouteB

class RouteB[A](val regex: String, val matchGroups: Int, val parse: Int => String => Option[A], val build: A => String) extends RouteCommon[RouteB, A] with ForRouteB[A]

A fragment of a route. Can be composed with other fragments.

Value parameters:
matchGroups

The number of matches that regex will capture.

Companion:
object
trait ForRouteB[A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def /[B](next: RouteB[B])(implicit c: Composition[A, B]): RouteB[C]
def option: RouteB[Option[A]]
override def parseThen(f: Option[A] => Option[A]): RouteB[A]
Definition Classes
override def pmap[B](b: A => Option[B])(a: B => A): RouteB[B]
Definition Classes
final def route: Route[A]
override def toString: String
Definition Classes
Any
def ~[B](next: RouteB[B])(implicit c: Composition[A, B]): RouteB[C]

Inherited methods

inline def caseClass[B <: Product](using m: ProductOf[B]): RouteB[B]

Maps the captures values of the route to a case class.

Maps the captures values of the route to a case class.

Inherited from:
ForRouteB
inline def caseClassDebug[B <: Product](using m: ProductOf[B]): RouteB[B]

Same as caseClass except the code generated by the macro is printed to stdout.

Same as caseClass except the code generated by the macro is printed to stdout.

Inherited from:
ForRouteB
final def const[B](b: B)(implicit ev: ValueOf[A]): RouteB[B]
Inherited from:
RouteCommon
final def filter(f: A => Boolean): RouteB[A]
Inherited from:
RouteCommon
final def mapInput[B >: A](f: B => A): RouteB[B]
Inherited from:
RouteCommon
final def mapParsed[B <: A](f: A => B): RouteB[B]
Inherited from:
RouteCommon
final def xmap[B](b: A => B)(a: B => A): RouteB[B]

Exponential map.

Exponential map.

Any A can be turned into a B and vice versa.

Inherited from:
RouteCommon

Concrete fields

val build: A => String
val matchGroups: Int
val parse: Int => String => Option[A]
val regex: String