HeaderRequired

harness.endpoint.spec.HeaderCodec$.HeaderRequired
See theHeaderRequired companion object
final case class HeaderRequired[A](key: String, schema: Schema[A]) extends HeaderWithKey[A, A], Required[A]

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Required[A]
trait HeaderWithKey[A, A]
trait WithKey[A, A]
trait HeaderCodec[A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def encode(o: A): (Map[String, List[String]], Map[String, String])

Attributes

Definition Classes

Inherited methods

final def ++[B](that: HeaderCodec[B])(implicit z: Zip[A, 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
override def decodeInternal(headers: Map[String, List[String]], cookies: Map[String, String]): Either[DecodingFailure, Decoded[B]]

Attributes

Definition Classes
Inherited from:
WithKey
final protected def decodeSingle(v: String): Either[DecodingFailure, A]

Attributes

Inherited from:
WithKey
final protected def fail(cause: Cause): Either[DecodingFailure, Nothing]

Attributes

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

Attributes

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

Attributes

Inherited from:
HeaderCodec
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

override protected val getValues: (Map[String, List[String]], Map[String, String]) => List[String]

Attributes

Inherited from:
HeaderWithKey
final lazy protected val headerSchema: GenericHeaderSchema

Attributes

Inherited from:
WithKey
override protected val makeSchema: (SchemaRequirement, String, Schema[A]) => GenericHeaderSchema

Attributes

Inherited from:
HeaderWithKey
override protected val parseValues: List[String] => Either[DecodingFailure, A]

Attributes

Inherited from:
Required

Attributes

Inherited from:
Required
final lazy protected val schemaSource: SchemaSource

Attributes

Inherited from:
WithKey
final lazy override val schemas: NonEmptyList[List[GenericHeaderSchema]]

Attributes

Inherited from:
WithKey
final lazy val sources: NonEmptyList[List[SchemaSource]]

Attributes

Inherited from:
HeaderCodec
final lazy protected val upperKey: String

Attributes

Inherited from:
WithKey