Header

object Header
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

trait LowPrio
final case
class Raw(name: CIString, value: String)
Companion
object
object Raw
Companion
class
final case
class Recurring() extends Type
object Select extends LowPrio
Companion
class
sealed
trait Select[A]

Abstracts over Single and Recurring Headers

Abstracts over Single and Recurring Headers

Companion
object
final case
class Single() extends Type
object ToRaw
Companion
class
sealed
trait ToRaw

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 a Header[A] in scope
  • A (name, value) pair of String, which is treated as a Recurring header
  • A Header.Raw
  • A Foldable (List, Option, etc) of the above.
See also
Companion
object
sealed
trait Type

Classifies modelled headers into Single headers, which can only appear once, and Recurring headers, which can appear multiple times.

Classifies modelled headers into Single headers, which can only appear once, and Recurring headers, which can appear multiple times.

Value members

Concrete methods

def apply[A](implicit ev: Header[A, _]): ev
def create[A, T <: Type](name_: CIString, value_: A => String, parse_: String => Either[ParseFailure, A]): Header[A, T]
def createRendered[A, T <: Type, B : Renderer](name_: CIString, value_: A => B, parse_: String => Either[ParseFailure, A]): Header[A, T]

Deprecated methods

@deprecated("use Header.Raw.apply", "0.22.0")
def apply(name: String, value: String): Raw
Deprecated