AcceptEncoding

zio.http.Header.AcceptEncoding
See theAcceptEncoding companion trait
object AcceptEncoding 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

final case class Br(weight: Option[Double]) extends AcceptEncoding

A compression format that uses the Brotli algorithm.

A compression format that uses the Brotli algorithm.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class Compress(weight: Option[Double]) extends AcceptEncoding

A compression format that uses the Lempel-Ziv-Welch (LZW) algorithm.

A compression format that uses the Lempel-Ziv-Welch (LZW) algorithm.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class Deflate(weight: Option[Double]) extends AcceptEncoding

A compression format that uses the zlib structure with the deflate compression algorithm.

A compression format that uses the zlib structure with the deflate compression algorithm.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class GZip(weight: Option[Double]) extends AcceptEncoding

A compression format that uses the Lempel-Ziv coding (LZ77) with a 32-bit CRC.

A compression format that uses the Lempel-Ziv coding (LZ77) with a 32-bit CRC.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class Identity(weight: Option[Double]) extends AcceptEncoding

Indicates the identity function (that is, without modification or compression). This value is always considered as acceptable, even if omitted.

Indicates the identity function (that is, without modification or compression). This value is always considered as acceptable, even if omitted.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class Multiple(encodings: NonEmptyChunk[AcceptEncoding]) extends AcceptEncoding

Maintains a chunk of AcceptEncoding values.

Maintains a chunk of AcceptEncoding values.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class NoPreference(weight: Option[Double]) extends AcceptEncoding

Matches any content encoding not already listed in the header. This is the default value if the header is not present.

Matches any content encoding not already listed in the header. This is the default value if the header is not present.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Header
class Object
trait Matchable
class Any
Show all
final case class Unknown(value: String, weight: Option[Double]) extends AcceptEncoding

Represent an unknown encoding

Represent an unknown encoding

Attributes

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

Types

override type HeaderValue = AcceptEncoding

Inherited types

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, AcceptEncoding]
def render(encoding: AcceptEncoding): String