ContextRouter

org.http4s.server.ContextRouter$

Attributes

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

Members list

Concise view

Type members

Classlikes

object Routable

Attributes

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

Attributes

Companion:
object
Source:
ContextRouter.scala
Graph
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
Graph
Supertypes
class Object
trait Matchable
class Any
object Segment

Attributes

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

Value members

Concrete methods

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

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