AcceptEncoding

play.api.http.AcceptEncoding
See theAcceptEncoding companion object

A representation of the Accept-Encoding header

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

The list of Accept-Encoding headers in order of appearance

The list of Accept-Encoding headers in order of appearance

Attributes

Concrete methods

def accepts(encoding: String): Boolean

Returns true if and only if the encoding is accepted by this Accept-Encoding header.

Returns true if and only if the encoding is accepted by this Accept-Encoding header.

Attributes

def preferred(choices: Seq[String]): Option[String]

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.

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.

Attributes

Concrete fields

Returns true if we can safely fall back to the identity encoding if no supported encoding is found.

Returns true if we can safely fall back to the identity encoding if no supported encoding is found.

Attributes

A list of encoding preferences, sorted from most to least preferred, and normalized to lowercase names.

A list of encoding preferences, sorted from most to least preferred, and normalized to lowercase names.

Attributes