ContextRouter
object ContextRouter
Type members
Value members
Concrete methods
Defines an ContextRoutes based on list of mappings.
Defines an ContextRoutes based on list of mappings.
- See also:
define
def define[F[_] : Monad, A](mappings: (String, ContextRoutes[A, F])*)(default: ContextRoutes[A, F]): ContextRoutes[A, F]
Defines an ContextRoutes based on list of mappings and a default Service to be used when none in the list match incoming requests.
Defines an ContextRoutes based on list of mappings and a default Service to be used when none in the list match incoming requests.
The mappings are processed in descending order (longest first) of prefix length.
def dynamic[F[_] : Sync, A](mappings: Routable[F, A]*)(default: ContextRoutes[A, F]): ContextRoutes[A, F]