ContextRouter

org.http4s.server.ContextRouter
object ContextRouter

Attributes

Source
ContextRouter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Routable

Attributes

Companion
trait
Source
ContextRouter.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Routable.type
sealed trait Routable[F[_], A]

Attributes

Companion
object
Source
ContextRouter.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Dynamic[F, A, B]
class Static[F, A]
final class Segment[F[_], A, B](val run: (A, Segment) => OptionT[F, B])

Attributes

Companion
object
Source
ContextRouter.scala
Supertypes
class Object
trait Matchable
class Any
object Segment

Attributes

Companion
class
Source
ContextRouter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Segment.type

Value members

Concrete methods

def apply[F[_] : Monad, A](mappings: (String, ContextRoutes[A, F])*): ContextRoutes[A, F]

Defines an ContextRoutes based on list of mappings.

Defines an ContextRoutes based on list of mappings.

Attributes

See also

define

Source
ContextRouter.scala

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.

Attributes

Source
ContextRouter.scala
def dynamic[F[_] : Sync, A](mappings: Routable[F, A]*)(default: ContextRoutes[A, F]): ContextRoutes[A, F]

Attributes

Source
ContextRouter.scala
def of[F[_] : Sync, A](mappings: Routable[F, A]*): ContextRoutes[A, F]

Attributes

Source
ContextRouter.scala

Deprecated methods

def apply[F[_], A](mappings: Seq[(String, ContextRoutes[A, F])], sync: Sync[F]): ContextRoutes[A, F]

Attributes

Deprecated
true
Source
ContextRouter.scala

Attributes

Deprecated
true
Source
ContextRouter.scala