HeaderOptional

harness.endpoint.spec.HeaderCodec$.HeaderOptional
See theHeaderOptional companion object
final case class HeaderOptional[A](key: String, schema: Schema[A]) extends HeaderWithKey[A, Option[A]], Optional[A]

Attributes

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

Members list

Value members

Concrete methods

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

Attributes

Definition Classes

Inherited methods

final def ++[B](that: HeaderCodec[B])(implicit z: Zip[Option[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: Option[A] => B, from: B => Option[A]): HeaderCodec[B]

Attributes

Inherited from:
HeaderCodec
final def imapDecode[B](to: Option[A] => Either[String, B], from: B => Option[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, Option[A]]

Attributes

Inherited from:
Optional

Attributes

Inherited from:
Optional
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