object Header
- Source
- Header.scala
- Alphabetic
- By Inheritance
- Header
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait LowPrio extends AnyRef
- final case class Raw(name: CIString, value: String) extends Product with Serializable
- case class Recurring() extends Type with Product with Serializable
-
sealed
trait
Select[A] extends AnyRef
Abstracts over Single and Recurring Headers
- case class Single() extends Type with Product with Serializable
-
sealed
trait
ToRaw extends AnyRef
Target for implicit conversions to Header.Raw from modelled headers and key-value pairs.
Target for implicit conversions to Header.Raw from modelled headers and key-value pairs.
A method taking variadic
ToRaw
arguments will allow taking heteregenous arguments, provided they are either:- A value of type
A
which has aHeader[A]
in scope - A (name, value) pair ofString
, which is treated as aRecurring
header - AHeader.Raw
- AFoldable
(List
,Option
, etc) of the above.- See also
-
sealed
trait
Type extends AnyRef
Classifies modelled headers into
Single
headers, which can only appear once, andRecurring
headers, which can appear multiple times.
Value Members
- def apply[A](implicit ev: Header[A, _]): ev.type
- def create[A, T <: Type](name_: CIString, value_: (A) ⇒ String, parse_: (String) ⇒ Either[ParseFailure, A]): Header[A, T]
- def createRendered[A, T <: Type, B](name_: CIString, value_: (A) ⇒ B, parse_: (String) ⇒ Either[ParseFailure, A])(implicit arg0: Renderer[B]): Header[A, T]
- object Raw extends Serializable
- object Select extends LowPrio
- object ToRaw