o

smithy4s.http4s.kernel

ResponseDecoder

object ResponseDecoder

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResponseDecoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. 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.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. 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.

  11. 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

  12. def fromEntityDecoder[F[_], A](implicit F: MonadThrow[F], entityDecoder: EntityDecoder[F, A]): ResponseDecoder[F, A]
  13. 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.

  14. def fromMetadataDecoderK[F[_]](implicit arg0: MonadThrow[F]): PolyFunction[Decoder, [β$2$]MessageDecoder[F, Response[F], β$2$]]
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. 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.

  22. def rpcSchemaCompiler[F[_]](entityDecoderCompiler: CachedSchemaCompiler[[β$4$]EntityDecoder[F, β$4$]])(implicit arg0: Concurrent[F]): CachedSchemaCompiler[[β$5$]MessageDecoder[F, Response[F], β$5$]]
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped