EncodingPreference

play.api.http.EncodingPreference
See theEncodingPreference companion object
case class EncodingPreference(name: String, 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.

Attributes

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

Members list

Value members

Concrete methods

def matches(contentEncoding: String): Boolean

Check if this encoding preference matches the specified encoding name.

Check if this encoding preference matches the specified encoding name.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

true if this is a wildcard * preference.

true if this is a wildcard * preference.

Attributes

val q: BigDecimal

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

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

Attributes