case class EncodingPreference(name: String = "*", qValue: Option[BigDecimal] = None) extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- EncodingPreference
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new EncodingPreference(name: String = "*", qValue: Option[BigDecimal] = None)
Value Members
- def matches(contentEncoding: String): Boolean
Check if this encoding preference matches the specified encoding name.
- val matchesAny: Boolean
true
if this is a wildcard*
preference. - val name: String
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val q: BigDecimal
The effective q-value.
The effective q-value. Defaults to 1 if none is specified.
- val qValue: Option[BigDecimal]
A representation of an encoding preference as specified in the Accept-Encoding header. This contains an encoding name (or *), and an optional q-value.