TransformOrFail

oxygen.http.core.BodyCodec.TransformOrFail
final case class TransformOrFail[A, B](a: BodyCodec[A], ab: A => Either[String, B], ba: B => A) extends BodyCodec[B]

Attributes

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

Members list

Value members

Concrete methods

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

Attributes

Definition Classes
override def encode(value: B): HttpBody

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def transform[B](ab: B => B, ba: B => B): BodyCodec[B]

Attributes

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

Attributes

Inherited from:
BodyCodec