Route

final class Route[A](pattern: Pattern, parseFn: Matcher => Option[A], buildFn: A => Path) extends RouteCommon[Route, A] with ForRoute[A]

A complete route.

trait ForRoute[A]
class RouteCommon[Route, A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def parse(path: Path): Option[A]
override def parseThen(f: Option[A] => Option[A]): Route[A]
Definition Classes
def pathFor(a: A): Path
override def pmap[B](b: A => Option[B])(a: B => A): Route[B]
Definition Classes
override def toString: String
Definition Classes
Any

Inherited methods

inline def caseClass[B <: Product](using m: ProductOf[B]): Route[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:
ForRoute
inline def caseClassDebug[B <: Product](using m: ProductOf[B]): Route[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:
ForRoute
final def const[B](b: B)(implicit ev: ValueOf[A]): Route[B]
Inherited from:
RouteCommon
final def filter(f: A => Boolean): Route[A]
Inherited from:
RouteCommon
final def mapInput[B >: A](f: B => A): Route[B]
Inherited from:
RouteCommon
final def mapParsed[B <: A](f: A => B): Route[B]
Inherited from:
RouteCommon
final def xmap[B](b: A => B)(a: B => A): Route[B]

Exponential map.

Exponential map.

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

Inherited from:
RouteCommon