Header

org.http4s.Header$
See theHeader companion trait
object Header

Attributes

Companion
trait
Source
Header.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Header.type

Members list

Type members

Classlikes

trait LowPrio

Attributes

Source
Header.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Select.type
final case class Raw(name: CIString, value: String)

Attributes

Companion
object
Source
Header.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Raw

Attributes

Companion
class
Source
Header.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Raw.type
case class Recurring() extends Type

Attributes

Source
Header.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Type
class Object
trait Matchable
class Any
Show all
object Select extends LowPrio

Attributes

Companion
trait
Source
Header.scala
Supertypes
trait LowPrio
class Object
trait Matchable
class Any
Self type
Select.type
sealed trait Select[A]

Abstracts over Single and Recurring Headers

Abstracts over Single and Recurring Headers

Attributes

Companion
object
Source
Header.scala
Supertypes
class Object
trait Matchable
class Any
case class Single() extends Type

Attributes

Source
Header.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Type
class Object
trait Matchable
class Any
Show all
object ToRaw

Attributes

Companion
trait
Source
Header.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ToRaw.type
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 heterogeneous 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.

Attributes

See also
Companion
object
Source
Header.scala
Supertypes
class Object
trait Matchable
class Any
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.

Attributes

Source
Header.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Recurring
class Single

Value members

Concrete methods

def apply[A](implicit ev: Header[A, _]): Header[A, _]

Attributes

Source
Header.scala
def create[A, T <: Type](name_: CIString, value_: A => String, parse_: String => Either[ParseFailure, A]): Header[A, T]

Attributes

Source
Header.scala
def createRendered[A, T <: Type, B : Renderer](name_: CIString, value_: A => B, parse_: String => Either[ParseFailure, A]): Header[A, T]

Attributes

Source
Header.scala

Deprecated methods

def apply(name: String, value: String): Raw

Attributes

Deprecated
true
Source
Header.scala