WithKey

harness.endpoint.spec.HeaderCodec$.WithKey
sealed trait WithKey[A, B] extends HeaderCodec[B]

Attributes

Graph
Supertypes
trait HeaderCodec[B]
class Object
trait Matchable
class Any
Known subtypes
trait CookieWithKey[A, B]
class CookieOptional[A]
class CookieRequired[A]
trait HeaderOrCookieWithKey[A, B]
trait HeaderWithKey[A, B]
class HeaderMany[A]
class HeaderOptional[A]
class HeaderRequired[A]
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
final protected def decodeSingle(v: String): Either[DecodingFailure, A]
final protected def fail(cause: Cause): Either[DecodingFailure, Nothing]

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
def encode(o: B): (Map[String, List[String]], Map[String, String])

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

Abstract fields

protected val getValues: (Map[String, List[String]], Map[String, String]) => List[String]
val key: String
protected val makeSchema: (SchemaRequirement, String, Schema[A]) => GenericHeaderSchema
protected val parseValues: List[String] => Either[DecodingFailure, B]
val schema: Schema[A]

Concrete fields

final lazy protected val headerSchema: GenericHeaderSchema
final lazy protected val schemaSource: SchemaSource
final lazy override val schemas: NonEmptyList[List[GenericHeaderSchema]]
final lazy protected val upperKey: String

Inherited fields

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

Attributes

Inherited from:
HeaderCodec