Class

org.http4s.rho

CodecRouter

Related Doc: package rho

Permalink

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

Linear Supertypes
Serializable, Serializable, Product, Equals, Decodable[F, T, R], RoutingEntity[F, ::[R, T]], RouteExecutable[F, ::[R, T]], TypedBuilder[F, ::[R, T]], UriConvertible[F], HeaderAppendable[F, 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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Type Members

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

    Permalink
    Definition Classes
    CodecRouterHeaderAppendable
  2. type Self = CodecRouter[F, T, R]

    Permalink
    Definition Classes
    CodecRouterRoutingEntity

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def /:(prefix: TypedPath[F, HNil]): Self

    Permalink
    Definition Classes
    CodecRouterRoutingEntity
  4. final def ==(arg0: Any): Boolean

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

    Permalink

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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  8. def asUri(request: Request[F]): Try[Uri]

    Permalink

    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]

    Permalink

    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

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

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

    Permalink

    Decode the body using the EntityDecoder

    Decode the body using the EntityDecoder

    Alias for the ^ operator.

    R2

    type of the result.

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

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def makeRoute(action: Action[F, ::[R, T]]): RhoRoute[F, ::[R, T]]

    Permalink

    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

    Permalink

    Method of the incoming HTTP Request

    Method of the incoming HTTP Request

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. val path: PathRule

    Permalink

    Untyped AST representation of the path to operate on

    Untyped AST representation of the path to operate on

    Definition Classes
    CodecRouterRoutingEntityTypedBuilder
  24. val router: Router[F, T]

    Permalink
  25. val rules: RequestRule[F]

    Permalink

    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
    CodecRouterRoutingEntityTypedBuilder
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. final def validate[T1 <: HList](header: TypedHeader[F, T1])(implicit prep: Prepend[T1, T]): HeaderAppendResult[Out]

    Permalink

    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
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def withMethod(other: Method): Self

    Permalink
    Definition Classes
    CodecRouterRoutingEntity
  32. final def |>>[U, R](f: U)(implicit hltf: HListToFunc[F, ::[R, T], U], srvc: CompileRoutes[F, R]): R

    Permalink

    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[F, T, R]

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

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

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

Inherited from UriConvertible[F]

Inherited from HeaderAppendable[F, T]

Inherited from AnyRef

Inherited from Any

Ungrouped