case class EncodingPreference(name: String = "*", qValue: Option[BigDecimal] = None) extends Product with Serializable

A representation of an encoding preference as specified in the Accept-Encoding header. This contains an encoding name (or *), and an optional q-value.

Source
AcceptEncoding.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EncodingPreference
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new EncodingPreference(name: String = "*", qValue: Option[BigDecimal] = None)

Value Members

  1. def matches(contentEncoding: String): Boolean

    Check if this encoding preference matches the specified encoding name.

  2. val matchesAny: Boolean

    true if this is a wildcard * preference.

  3. val name: String
  4. def productElementNames: Iterator[String]
    Definition Classes
    Product
  5. val q: BigDecimal

    The effective q-value.

    The effective q-value. Defaults to 1 if none is specified.

  6. val qValue: Option[BigDecimal]