org.http4s.rho

CodecRouter

Related Doc: package rho

case class CodecRouter[T <: HList, R](router: Router[T], decoder: EntityDecoder[R])(implicit t: scala.reflect.api.JavaUniverse.TypeTag[R]) extends HeaderAppendable[T] with RouteExecutable[::[R, T]] with RoutingEntity[::[R, T]] with Decodable[T, R] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Decodable[T, R], RoutingEntity[::[R, T]], RouteExecutable[::[R, T]], TypedBuilder[::[R, T]], UriConvertible, HeaderAppendable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CodecRouter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Decodable
  7. RoutingEntity
  8. RouteExecutable
  9. TypedBuilder
  10. UriConvertible
  11. HeaderAppendable
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CodecRouter(router: Router[T], decoder: EntityDecoder[R])(implicit t: scala.reflect.api.JavaUniverse.TypeTag[R])

Type Members

  1. type HeaderAppendResult[T <: HList] = CodecRouter[T, R]

    Definition Classes
    CodecRouterHeaderAppendable

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def >>>[T2 <: HList](v: TypedHeader[T2])(implicit prep1: Prepend[T2, T]): CodecRouter[Out, R]

    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
    CodecRouterHeaderAppendable
  5. final def ^[R2 >: R](decoder: EntityDecoder[R2])(implicit t: scala.reflect.api.JavaUniverse.TypeTag[R2]): CodecRouter[T, R2]

    Alias for decoding

    Alias for decoding

    Definition Classes
    Decodable
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def asUri(request: Request): 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
  8. def asUriTemplate(request: Request): 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
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val decoder: EntityDecoder[R]

  11. def decoding[R2 >: R](decoder2: EntityDecoder[R2])(implicit t: scala.reflect.api.JavaUniverse.TypeTag[R2]): CodecRouter[T, R2]

    Decode the body using the EntityDecoder

    Decode the body using the EntityDecoder

    Definition Classes
    CodecRouterDecodable
  12. def entityType: scala.reflect.api.JavaUniverse.Type

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. val headers: HeaderRule

    Untyped AST representation of the Headers to operate on

    Untyped AST representation of the Headers to operate on

    Definition Classes
    CodecRouterRoutingEntityTypedBuilder
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def makeAction[F](f: F, hf: HListToFunc[::[R, T], F]): RhoAction[::[R, T], F]

    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
    CodecRouterRouteExecutable
  19. def method: Method

    Method of the incoming HTTP Request

    Method of the incoming HTTP Request

    Definition Classes
    CodecRouterRoutingEntityRouteExecutable
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def path: PathRule

    Untyped AST representation of the path to operate on

    Untyped AST representation of the path to operate on

    Definition Classes
    CodecRouterRoutingEntityTypedBuilder
  24. def query: QueryRule

    Untyped AST representation of the query to operate on

    Untyped AST representation of the query to operate on

    Definition Classes
    CodecRouterRoutingEntityTypedBuilder
  25. val router: Router[T]

  26. final def runWith[F, O](f: F)(implicit hf: HListToFunc[::[R, T], F]): (Request) ⇒ Task[Option[Response]]

    Provide an action from which to generate a complete route

    Provide an action from which to generate a complete route

    F

    the type of f

    O

    the type of the result generated by f

    f

    "function" used to in compiling the route

    hf

    converter used to join the HList generated by the route to the function f

    returns

    a function Request => Option[Task[Response]] which can be used as a complete route

    Definition Classes
    RouteExecutable
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. final def validate[T2 <: HList](header: TypedHeader[T2])(implicit prep: Prepend[T2, T]): HeaderAppendResult[Out]

    Definition Classes
    HeaderAppendable
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def |>>[F, R](f: F)(implicit hf: HListToFunc[::[R, T], F], srvc: CompileService[F, R]): R

    Compiles a HTTP request definition into an action

    Compiles a HTTP request definition into an action

    Definition Classes
    RouteExecutable

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Decodable[T, R]

Inherited from RoutingEntity[::[R, T]]

Inherited from RouteExecutable[::[R, T]]

Inherited from TypedBuilder[::[R, T]]

Inherited from UriConvertible

Inherited from HeaderAppendable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped