BodyCodec

oxygen.http.core.BodyCodec
See theBodyCodec companion trait
object BodyCodec extends LowPriority1

Attributes

Companion
trait
Graph
Supertypes
trait LowPriority1
class Object
trait Matchable
class Any
Self type
BodyCodec.type

Members list

Type members

Classlikes

case object DNE extends BodyCodec[Nothing]

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait BodyCodec[Nothing]
class Object
trait Matchable
class Any
Show all
Self type
DNE.type
case object Empty extends BodyCodec[Unit]

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait BodyCodec[Unit]
class Object
trait Matchable
class Any
Show all
Self type
Empty.type
object Json

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Json.type
trait Json[A] extends Text[A]

Attributes

Companion
object
Supertypes
trait Text[A]
trait BodyCodec[A]
class Object
trait Matchable
class Any
Known subtypes
class Required[A]
class Transform[A, B]
class TransformOrFail[A, B]
object Plain

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Plain.type
trait Plain[A] extends Text[A]

Attributes

Companion
object
Supertypes
trait Text[A]
trait BodyCodec[A]
class Object
trait Matchable
class Any
Known subtypes
class Required[A]
object Str
class Transform[A, B]
class TransformOrFail[A, B]
trait Text[A] extends BodyCodec[A]

Attributes

Supertypes
trait BodyCodec[A]
class Object
trait Matchable
class Any
Known subtypes
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]
Show all
final case class Transform[A, B](a: BodyCodec[A], ab: A => B, ba: B => A) extends BodyCodec[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait BodyCodec[B]
class Object
trait Matchable
class Any
Show all
final case class TransformOrFail[A, B](a: BodyCodec[A], ab: A => Either[String, B], ba: B => A) extends BodyCodec[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait BodyCodec[B]
class Object
trait Matchable
class Any
Show all

Givens

Givens

given dne: BodyCodec[Nothing]
given string: BodyCodec[String]
given unit: BodyCodec[Unit]

Inherited givens

given typedJson[A](using codec: JsonCodec[A]): BodyCodec[A]

Attributes

Inherited from:
LowPriority1