Text

oxygen.http.core.BodyCodec.Text
trait Text[A] extends BodyCodec[A]

Attributes

Graph
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

Members list

Value members

Abstract methods

def decodeText(body: Text): Either[Cause, A]
def encodeText(value: A): Text

Concrete methods

final override def decode(body: HttpBody): ZIO[Scope, Cause, A]

Attributes

Definition Classes
final override def encode(value: A): HttpBody

Attributes

Definition Classes
override def transform[B](ab: A => B, ba: B => A): Text[B]

Attributes

Definition Classes
override def transformOrFail[B](ab: A => Either[String, B], ba: B => A): Text[B]

Attributes

Definition Classes