RouteMatcher

object RouteMatcher extends LogSupport
Companion:
class
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any

Type members

Classlikes

case class ConstantPathMapping(pathPrefix: String, index: Int, name: String, matchedRoute: Option[Route]) extends PathMapping

Mapping an exact path component name to Routes.

Mapping an exact path component name to Routes.

class FastRouteMatcher(targetMethod: String, routes: Seq[Route]) extends RouteMatcher with LogSupport

DFA-based RouterMatcher

DFA-based RouterMatcher

case object Init extends PathMapping

Initial state

Initial state

sealed trait PathMapping

Define an operation when matching path component is found (e.g., binding path components to matching path variables)

Define an operation when matching path component is found (e.g., binding path components to matching path variables)

case class PathSequenceMapping(pathPrefix: String, index: Int, varName: String, matchedRoute: Option[Route]) extends PathMapping

*(varname) syntax. Matching the tail of path components to a single variable.

*(varname) syntax. Matching the tail of path components to a single variable.

A set of RouteMatchers for different HTTP method types

A set of RouteMatchers for different HTTP method types

case class VariableMapping(pathPrefix: String, index: Int, varName: String, matchedRoute: Option[Route]) extends PathMapping

Mapping a variable in the path. For example, /v1/user/:id has a variable 'id'.

Mapping a variable in the path. For example, /v1/user/:id has a variable 'id'.

Value members

Concrete methods

def build(routes: Seq[Route]): RouteMatcher

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit
Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit
Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit
Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit
Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit
Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit
Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit
Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit
Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit
Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit
Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit
Inherited from:
LoggingMethods