object ResponseDecoder
- Alphabetic
- By Inheritance
- ResponseDecoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def discriminating[F[_], Discriminator, E](discriminate: (Response[F]) => F[Option[Discriminator]], select: (Discriminator) => Option[ResponseDecoder[F, E]])(implicit arg0: Concurrent[F]): ResponseDecoder[F, E]
Creates a response decoder that dispatches the response to a given decoder, based on some discriminator.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def forError[F[_], E](maybeErrorable: Option[Errorable[E]], decoderCompiler: CachedSchemaCompiler[[β$0$]MessageDecoder[F, Response[F], β$0$]], discriminate: (Response[F]) => F[Option[HttpDiscriminator]])(implicit arg0: Concurrent[F]): ResponseDecoder[F, E]
Creates a response decoder that dispatches the response to the correct alternative, based on some discriminator.
- def forErrorAsThrowable[F[_], E](maybeErrorable: Option[Errorable[E]], decoderCompiler: CachedSchemaCompiler[[β$1$]MessageDecoder[F, Response[F], β$1$]], discriminate: (Response[F]) => F[Option[HttpDiscriminator]])(implicit arg0: Concurrent[F]): ResponseDecoder[F, Throwable]
Creates a response decoder that dispatches the response to the correct alternative, based on some discriminator, and then upcasts the error as a throwable
- def fromEntityDecoder[F[_], A](implicit F: MonadThrow[F], entityDecoder: EntityDecoder[F, A]): ResponseDecoder[F, A]
- def fromMetadataDecoder[F[_], A](metadataDecoder: Decoder[A])(implicit arg0: MonadThrow[F]): ResponseDecoder[F, A]
Creates a ResponseDecoder that decodes an HTTP message by looking at the metadata.
Creates a ResponseDecoder that decodes an HTTP message by looking at the metadata.
NB: This decoder assumes that incoming requests have been enriched with pre-extracted path-parameters in the vault.
- def fromMetadataDecoderK[F[_]](implicit arg0: MonadThrow[F]): PolyFunction[Decoder, [β$2$]MessageDecoder[F, Response[F], β$2$]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def restSchemaCompiler[F[_]](metadataDecoderCompiler: CachedSchemaCompiler[Decoder], entityDecoderCompiler: CachedSchemaCompiler[[β$6$]EntityDecoder[F, β$6$]])(implicit F: Concurrent[F]): CachedSchemaCompiler[[β$7$]MessageDecoder[F, Response[F], β$7$]]
A compiler for ResponseDecoder that abides by REST-semantics : fields that are annotated with
httpLabel,httpHeader,httpQuery,httpStatusCode...A compiler for ResponseDecoder that abides by REST-semantics : fields that are annotated with
httpLabel,httpHeader,httpQuery,httpStatusCode... are decoded from the corresponding metadata.The rest is decoded from the body.
- def rpcSchemaCompiler[F[_]](entityDecoderCompiler: CachedSchemaCompiler[[β$4$]EntityDecoder[F, β$4$]])(implicit arg0: Concurrent[F]): CachedSchemaCompiler[[β$5$]MessageDecoder[F, Response[F], β$5$]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()