object CacheDirectives
- Source
- CacheDirectives.scala
- Alphabetic
- By Inheritance
- CacheDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class CacheDirectiveExtension(name: String, value: Option[String]) extends CacheDirective with Product with Serializable
- case class MaxAge(delta: Seconds) extends CacheDirective with Product with Serializable
-
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
- case class MinFresh(delta: Seconds) extends CacheDirective with Product with Serializable
- case class NoCache(headerNames: Option[Seq[String]]) extends CacheDirective with Product with Serializable
- case class Private(headerNames: Option[Seq[String]]) extends CacheDirective with Product with Serializable
- case class SMaxAge(delta: Seconds) extends CacheDirective with Product with Serializable
- case class StaleIfError(delta: Seconds) extends CacheDirective with Product with Serializable
- case class StaleWhileRevalidate(delta: Seconds) extends CacheDirective with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def extensions(directives: Seq[CacheDirective]): Seq[CacheDirectiveExtension]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
maxAge(directives: Seq[CacheDirective]): Option[MaxAge]
Finds the instance of MaxAge.
- def maxStale(directives: Seq[CacheDirective]): Option[MaxStale]
- def minFresh(directives: Seq[CacheDirective]): Option[MinFresh]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noCache(directives: Seq[CacheDirective]): Option[NoCache]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def private(directives: Seq[CacheDirective]): Option[Private]
- def sMaxAge(directives: Seq[CacheDirective]): Option[SMaxAge]
- def staleIfError(directives: Seq[CacheDirective]): Option[StaleIfError]
- def staleWhileRevalidate(directives: Seq[CacheDirective]): Option[StaleWhileRevalidate]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object MustRevalidate extends CacheDirective with Product with Serializable
- object NoStore extends CacheDirective with Product with Serializable
-
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
-
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
- object ProxyRevalidate extends CacheDirective with Product with Serializable
- object Public extends CacheDirective with Product with Serializable