object CacheDirectives

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

Type Members

  1. case class CacheDirectiveExtension(name: String, value: Option[String]) extends CacheDirective with Product with Serializable
  2. case class MaxAge(delta: Seconds) extends CacheDirective with Product with Serializable
  3. case class MaxStale(delta: Option[Seconds]) extends CacheDirective with Product with Serializable

    The "max-stale" request directive indicates that the client is willing to accept a response that has exceeded its freshness lifetime.

    The "max-stale" request directive indicates that the client is willing to accept a response that has exceeded its freshness lifetime. If max-stale is assigned a value, then the client is willing to accept a response that has exceeded its freshness lifetime by no more than the specified number of seconds. If no value is assigned to max-stale, then the client is willing to accept a stale response of any age.

    This directive uses the token form of the argument syntax: e.g., 'max-stale=10' not 'max-stale="10"'. A sender SHOULD NOT generate the quoted-string form.

    https://tools.ietf.org/html/rfc7234#section-5.2.1.2

  4. case class MinFresh(delta: Seconds) extends CacheDirective with Product with Serializable
  5. case class NoCache(headerNames: Option[Seq[String]]) extends CacheDirective with Product with Serializable
  6. case class Private(headerNames: Option[Seq[String]]) extends CacheDirective with Product with Serializable
  7. case class SMaxAge(delta: Seconds) extends CacheDirective with Product with Serializable
  8. case class StaleIfError(delta: Seconds) extends CacheDirective with Product with Serializable
  9. case class StaleWhileRevalidate(delta: Seconds) extends CacheDirective with Product with Serializable

Value Members

  1. def extensions(directives: Seq[CacheDirective]): Seq[CacheDirectiveExtension]
  2. def maxAge(directives: Seq[CacheDirective]): Option[MaxAge]

    Finds the instance of MaxAge.

  3. def maxStale(directives: Seq[CacheDirective]): Option[MaxStale]
  4. def minFresh(directives: Seq[CacheDirective]): Option[MinFresh]
  5. def noCache(directives: Seq[CacheDirective]): Option[NoCache]
  6. def private(directives: Seq[CacheDirective]): Option[Private]
  7. def sMaxAge(directives: Seq[CacheDirective]): Option[SMaxAge]
  8. def staleIfError(directives: Seq[CacheDirective]): Option[StaleIfError]
  9. def staleWhileRevalidate(directives: Seq[CacheDirective]): Option[StaleWhileRevalidate]
  10. case object MustRevalidate extends CacheDirective with Product with Serializable
  11. case object NoStore extends CacheDirective with Product with Serializable
  12. case object NoTransform extends CacheDirective with Product with Serializable

    The "no-transform" request directive indicates that an intermediary (whether or not it implements a cache) MUST NOT transform the payload, as defined in Section 5.7.2 of [RFC7230].

    The "no-transform" request directive indicates that an intermediary (whether or not it implements a cache) MUST NOT transform the payload, as defined in Section 5.7.2 of [RFC7230].

    // https://tools.ietf.org/html/rfc7234#section-5.2.1.6

    The "no-transform" response directive indicates that an intermediary (regardless of whether it implements a cache) MUST NOT transform the payload, as defined in Section 5.7.2 of [RFC7230].

    // https://tools.ietf.org/html/rfc7234#section-5.2.2.4

  13. case object OnlyIfCached extends CacheDirective with Product with Serializable

    The "only-if-cached" request directive indicates that the client only wishes to obtain a stored response.

    The "only-if-cached" request directive indicates that the client only wishes to obtain a stored response. If it receives this directive, a cache SHOULD either respond using a stored response that is consistent with the other constraints of the request, or respond with a 504 (Gateway Timeout) status code. If a group of caches is being operated as a unified system with good internal connectivity, a member cache MAY forward such a request within that group of caches.

    https://tools.ietf.org/html/rfc7234#section-5.2.1.7

  14. case object ProxyRevalidate extends CacheDirective with Product with Serializable
  15. case object Public extends CacheDirective with Product with Serializable