Router

org.http4s.server.Router$
object Router

Attributes

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

Members list

Concise view

Type members

Classlikes

object Routable

Attributes

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

Attributes

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

Attributes

Companion:
object
Source:
Router.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object Segment

Attributes

Companion:
class
Source:
Router.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Segment.type

Value members

Concrete methods

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

Defines an HttpRoutes based on list of mappings.

Defines an HttpRoutes based on list of mappings.

Attributes

See also:

define

Source:
Router.scala
def define[F[_] : Monad](mappings: (String, HttpRoutes[F])*)(default: HttpRoutes[F]): HttpRoutes[F]

Defines an HttpRoutes based on list of mappings and a default Service to be used when none in the list match incoming requests.

Defines an HttpRoutes 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:
Router.scala
def dynamic[F[_] : Monad](mappings: Routable[F]*)(default: HttpRoutes[F]): HttpRoutes[F]

Attributes

Source:
Router.scala
def of[F[_] : Monad](mappings: Routable[F]*): HttpRoutes[F]

Attributes

Source:
Router.scala