trait MessageOps[F[_]] extends Any
Basic HTTP client code based mostly on http4s.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- MessageOps
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
attemptAs[T](implicit F: FlatMap[F], decoder: EntityDecoder[F, T]): DecodeResult[F, T]
Decode the body given an implicit decoder to a DecodeResult.
Concrete Value Members
-
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.