case class Router[F[_], T <: HList](method: Method, path: PathRule, rules: RequestRule[F]) extends RouteExecutable[F, T] with HeaderAppendable[F, T] with RoutingEntity[F, T] with Decodable[F, T, Nothing] with RoutePrependable[F, Router[F, T]] with Product with Serializable

Provides the operations for generating a router

T

cumulative type of the required method for executing the router

method

request methods to match

path

path matching stack

rules

header validation stack

Linear Supertypes
Serializable, Product, Equals, RoutePrependable[F, Router[F, T]], Decodable[F, T, Nothing], RoutingEntity[F, T], HeaderAppendable[F, T], RouteExecutable[F, T], TypedBuilder[F, T], UriConvertible[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Router
  2. Serializable
  3. Product
  4. Equals
  5. RoutePrependable
  6. Decodable
  7. RoutingEntity
  8. HeaderAppendable
  9. RouteExecutable
  10. TypedBuilder
  11. UriConvertible
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Router(method: Method, path: PathRule, rules: RequestRule[F])

    method

    request methods to match

    path

    path matching stack

    rules

    header validation stack

Type Members

  1. type HeaderAppendResult[T <: HList] = Router[F, T]
    Definition Classes
    RouterHeaderAppendable
  2. type Self = Router[F, T]
    Definition Classes
    RouterRoutingEntity

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def /:(prefix: TypedPath[F, HNil]): Self

    Prepend the prefix to the path rules

    Prepend the prefix to the path rules

    prefix

    non-capturing prefix to prepend

    returns

    builder with the prefix prepended to the path rules

    Definition Classes
    RouterRoutePrependableRoutingEntity
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def >>>[T1 <: HList](v: TypedHeader[F, T1])(implicit prep1: Prepend[T1, T]): Router[F, Out]

    Append the header to the builder, generating a new typed representation of the route

    Append the header to the builder, generating a new typed representation of the route

    Definition Classes
    RouterHeaderAppendable
  6. final def ^[R2 >: Nothing](decoder: EntityDecoder[F, R2])(implicit F: Functor[F], t: scala.reflect.api.JavaUniverse.TypeTag[R2]): CodecRouter[F, T, R2]

    Decode the body using the EntityDecoder

    Decode the body using the EntityDecoder

    Alias for decoding

    R2

    type of the result.

    decoder

    EntityDecoder to utilize for decoding the body.

    Definition Classes
    Decodable
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def asUri(request: Request[F]): Try[Uri]

    Converts a route into an Uri.

    Converts a route into an Uri.

    If the conversion fails None is returned. In case your route has multiple paths only one way will be resolved as instance of Uri. If the route is a URI Template but not an URI None will be returned.

    Definition Classes
    UriConvertible
  9. final def asUriTemplate(request: Request[F]): Try[UriTemplate]

    Converts a route into an UriTemplate.

    Converts a route into an UriTemplate.

    If the conversion fails None is returned. In case your route has multiple paths only one way will be resolved as instance of UriTemplate.

    Definition Classes
    TypedBuilderUriConvertible
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. def decoding[R](decoder: EntityDecoder[F, R])(implicit F: Functor[F], t: scala.reflect.api.JavaUniverse.TypeTag[R]): CodecRouter[F, T, R]

    Decode the body using the EntityDecoder

    Decode the body using the EntityDecoder

    Alias for the ^ operator.

    decoder

    EntityDecoder to utilize for decoding the body.

    Definition Classes
    RouterDecodable
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def makeRoute(action: Action[F, T]): RhoRoute[F, T]

    Create a RhoRoute from a given Action

    Create a RhoRoute from a given Action

    Definition Classes
    RouterRouteExecutable
  16. val method: Method

    Method of the incoming HTTP Request

    Method of the incoming HTTP Request

    Definition Classes
    RouterRoutingEntityRouteExecutable
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. val path: PathRule

    Untyped AST representation of the path to operate on

    Untyped AST representation of the path to operate on

    Definition Classes
    RouterRoutingEntityTypedBuilder
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. val rules: RequestRule[F]

    Untyped AST describing the extraction of headers and the query from the Request

    Untyped AST describing the extraction of headers and the query from the Request

    Definition Classes
    RouterRoutingEntityTypedBuilder
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. final def validate[T1 <: HList](header: TypedHeader[F, T1])(implicit prep: Prepend[T1, T]): HeaderAppendResult[Out]

    Append the header to the builder, generating a new typed representation of the route

    Append the header to the builder, generating a new typed representation of the route

    Definition Classes
    HeaderAppendable
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. def withMethod(other: Method): Self
    Definition Classes
    RouterRoutingEntity
  29. final def |>>[U, R](f: U)(implicit hltf: HListToFunc[F, T, U], srvc: CompileRoutes[F, R]): R

    Compiles a HTTP request definition into an action

    Compiles a HTTP request definition into an action

    Definition Classes
    RouteExecutable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RoutePrependable[F, Router[F, T]]

Inherited from Decodable[F, T, Nothing]

Inherited from RoutingEntity[F, T]

Inherited from HeaderAppendable[F, T]

Inherited from RouteExecutable[F, T]

Inherited from TypedBuilder[F, T]

Inherited from UriConvertible[F]

Inherited from AnyRef

Inherited from Any

Ungrouped