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

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

override type HeaderValue = Accept

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

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

Inherited methods

Attributes

Inherited from:
HeaderType

Attributes

Inherited from:
HeaderType
override def toHeaders(value: HeaderValue): Headers

Attributes

Definition Classes
Inherited from:
HeaderType