HeaderCodec

harness.endpoint.spec.HeaderCodec
See theHeaderCodec companion object
trait HeaderCodec[A]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class And[A, B, O]
object Empty.type
class IMap[A, B]
class IMapDecode[A, B]
trait Many[A]
class HeaderMany[A]
trait ManyNonEmpty[A]
class OneOf[A]
trait Optional[A]
class CookieOptional[A]
class HeaderOptional[A]
trait Required[A]
class CookieRequired[A]
class HeaderRequired[A]
trait WithKey[A, B]
trait CookieWithKey[A, B]
trait HeaderOrCookieWithKey[A, B]
trait HeaderWithKey[A, B]
Show all
Self type

Members list

Value members

Abstract methods

def decodeInternal(headers: Map[String, List[String]], cookies: Map[String, String]): Either[DecodingFailure, Decoded[A]]
def encode(o: A): (Map[String, List[String]], Map[String, String])

Concrete methods

final def ++[B](that: HeaderCodec[B])(implicit z: Zip[A, B]): HeaderCodec[Out]
final def decode(headers: Map[String, List[String]], cookies: Map[String, String]): Either[DecodingFailure, A]
final def imap[B](to: A => B, from: B => A): HeaderCodec[B]
final def imapDecode[B](to: A => Either[String, B], from: B => A): HeaderCodec[B]

Abstract fields

lazy val schemas: NonEmptyList[List[GenericHeaderSchema]]

Concrete fields

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