trait AcceptEncoding extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- AcceptEncoding
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def headers: Seq[String]
The list of Accept-Encoding headers in order of appearance
Concrete Value Members
- def accepts(encoding: String): Boolean
Returns
true
if and only if the encoding is accepted by this Accept-Encoding header. - lazy val identityAllowed: Boolean
Returns
true
if we can safely fall back to the identity encoding if no supported encoding is found. - lazy val preferences: Seq[EncodingPreference]
A list of encoding preferences, sorted from most to least preferred, and normalized to lowercase names.
- def preferred(choices: Seq[String]): Option[String]
Given a list of encoding names, choose the most preferred by the client.
Given a list of encoding names, choose the most preferred by the client. If several encodings are equally preferred, choose the one first in the list.
Note that this chooses not to handle the "*" value, since its presence does not tell us if the client supports the specific encoding.
A representation of the Accept-Encoding header