BodyCodec

oxygen.http.core.BodyCodec
See theBodyCodec companion object
trait BodyCodec[A]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object DNE
object Empty
trait Text[A]
trait Json[A]
class Required[A]
class Transform[A, B]
class TransformOrFail[A, B]
trait Plain[A]
class Required[A]
object Str
class Transform[A, B]
class TransformOrFail[A, B]
class Transform[A, B]
class TransformOrFail[A, B]
Show all

Members list

Value members

Abstract methods

def decode(body: HttpBody): ZIO[Scope, Cause, A]
def encode(value: A): HttpBody

Concrete methods

def transform[B](ab: A => B, ba: B => A): BodyCodec[B]
def transformOrFail[B](ab: A => Either[String, B], ba: B => A): BodyCodec[B]