t

dynamics.http

Message

trait Message[F[_]] extends MessageOps[F]

Superclass of requests and responses. Holds headers and a body at a minimum.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Message
  2. MessageOps
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def body: Entity
  2. abstract def headers: HttpHeaders

Concrete Value Members

  1. final def as[T](implicit F: FlatMap[F], decoder: EntityDecoder[F, T]): F[T]

    Decode the body to specific type inside an effect.

    Decode the body to specific type inside an effect. A decode exception is translated into a failed effect. If the DecodeResult was already failed, that failure is kept. This is just one way to handle the DecodeResult.

    Definition Classes
    MessageOps
  2. def attemptAs[T](implicit F: FlatMap[F], decoder: EntityDecoder[F, T]): DecodeResult[F, T]

    Decode the body given an implicit decoder to a DecodeResult.

    Decode the body given an implicit decoder to a DecodeResult.

    Definition Classes
    MessageMessageOps