Header

object Header
Companion:
class
Source:
Header.scala
class Object
trait Matchable
class Any
Header.type

Type members

Classlikes

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

Abstracts over Single and Recurring Headers

Abstracts over Single and Recurring Headers

Companion:
object
Source:
Header.scala
final case class Single() extends Type
object ToRaw
Companion:
class
Source:
Header.scala
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
Source:
Header.scala
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.

Source:
Header.scala

Value members

Concrete methods

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 : 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
Source:
Header.scala