Accept

zio.http.Header.Accept
See theAccept companion class
object Accept extends HeaderType

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
trait HeaderType
class Object
trait Matchable
class Any
Show all
Self type
Accept.type

Members list

Type members

Classlikes

final case class MediaTypeWithQFactor(mediaType: MediaType, qFactor: Option[Double])

The Accept header value one or more MIME types optionally weighed with quality factor.

The Accept header value one or more MIME types optionally weighed with quality factor.

Attributes

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

Types

override type HeaderValue = Accept

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

def apply(mediaType: MediaType, qFactor: Option[Double]): Accept
def apply(first: MediaType, rest: MediaType*): Accept
override def name: String

Attributes

Definition Classes
def parse(value: String): Either[String, Accept]
def render(header: Accept): String