AcceptLanguage

zio.http.Header.AcceptLanguage
See theAcceptLanguage companion trait
object AcceptLanguage extends HeaderType

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
trait HeaderType
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

case object Any extends AcceptLanguage

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
Self type
Any.type
case class Multiple(languages: NonEmptyChunk[AcceptLanguage]) extends AcceptLanguage

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
case class Single(language: String, weight: Option[Double]) extends AcceptLanguage

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all

Types

override type HeaderValue = AcceptLanguage

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

override def name: String

Attributes

Definition Classes
def parse(value: String): Either[String, AcceptLanguage]
def render(acceptLanguage: AcceptLanguage): String