Packages

o

org.http4s.server

ContextRouter

object ContextRouter

Source
ContextRouter.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContextRouter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[F[_], A](mappings: (String, ContextRoutes[A, F])*)(implicit arg0: Sync[F]): ContextRoutes[A, F]

    Defines an ContextRoutes based on list of mappings.

    Defines an ContextRoutes based on list of mappings.

    See also

    define

  2. def define[F[_], A](mappings: (String, ContextRoutes[A, F])*)(default: ContextRoutes[A, F])(implicit arg0: Sync[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.