IMapDecode

harness.endpoint.spec.HeaderCodec$.IMapDecode
final case class IMapDecode[A, B](parent: HeaderCodec[A], to: A => Either[String, B], from: B => A) extends HeaderCodec[B]

Attributes

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

Members list

Value members

Concrete methods

override def decodeInternal(headers: Map[String, List[String]], cookies: Map[String, String]): Either[DecodingFailure, Decoded[B]]

Attributes

Definition Classes
override def encode(o: B): (Map[String, List[String]], Map[String, String])

Attributes

Definition Classes

Inherited methods

final def ++[B](that: HeaderCodec[B])(implicit z: Zip[B, B]): HeaderCodec[Out]

Attributes

Inherited from:
HeaderCodec
final def decode(headers: Map[String, List[String]], cookies: Map[String, String]): Either[DecodingFailure, A]

Attributes

Inherited from:
HeaderCodec
final def imap[B](to: B => B, from: B => B): HeaderCodec[B]

Attributes

Inherited from:
HeaderCodec
final def imapDecode[B](to: B => Either[String, B], from: B => B): HeaderCodec[B]

Attributes

Inherited from:
HeaderCodec
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy override val schemas: NonEmptyList[List[GenericHeaderSchema]]

Inherited fields

final lazy val sources: NonEmptyList[List[SchemaSource]]

Attributes

Inherited from:
HeaderCodec