trait AcceptEncoding extends AnyRef

A representation of the Accept-Encoding header

Source
AcceptEncoding.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AcceptEncoding
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def headers: Seq[String]

    The list of Accept-Encoding headers in order of appearance

Concrete Value Members

  1. def accepts(encoding: String): Boolean

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

  2. lazy val identityAllowed: Boolean

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

  3. lazy val preferences: Seq[EncodingPreference]

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

  4. 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.