class ResponseCachingCalculator extends AnyRef

Decides whether this response from an origin server should be stored in cached or not.

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

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

Instance Constructors

  1. new ResponseCachingCalculator(cache: Cache)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def containsAuthorizationHeader(request: CacheRequest): Boolean

    Returns true if the request contains an Authorization header, false otherwise.

    Returns true if the request contains an Authorization header, false otherwise.

    Attributes
    protected
  7. def containsCachableExtension(response: OriginResponse): Boolean
    Attributes
    protected
  8. def containsExpiresHeader(response: OriginResponse): Boolean

    Returns true if the response contains an expires header, false otherwise.

    Returns true if the response contains an expires header, false otherwise.

    Attributes
    protected
  9. def containsIncompatibleAuthorizationInSharedCache(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    "the Authorization header field (see Section 4.2 of [Part7]) does not appear in the request, if the cache is shared, unless the response explicitly allows it (see Section 3.2)"

    "the Authorization header field (see Section 4.2 of [Part7]) does not appear in the request, if the cache is shared, unless the response explicitly allows it (see Section 3.2)"

    Attributes
    protected
  10. def containsMaxAgeDirective(response: OriginResponse): Boolean
    Attributes
    protected
  11. def containsMustRevalidateDirective(response: OriginResponse): Boolean
    Attributes
    protected
  12. def containsNoStoreDirective(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    "the "no-store" cache directive (see Section 5.2) does not appear in request or response header fields"

    "the "no-store" cache directive (see Section 5.2) does not appear in request or response header fields"

    Attributes
    protected
  13. def containsPrivateResponseDirectiveInSharedCache(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    "the "private" response directive (see Section 5.2.2.6) does not appear in the response, if the cache is shared, and"

    "the "private" response directive (see Section 5.2.2.6) does not appear in the response, if the cache is shared, and"

    Attributes
    protected
  14. def containsPublicDirective(response: OriginResponse): Boolean
    Attributes
    protected
  15. def containsSMaxAgeDirective(response: OriginResponse): Boolean
    Attributes
    protected
  16. def directiveAllowsAuthorization(response: OriginResponse): Boolean

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

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

    "must-revalidate, public, and s-maxage" allow an authorization header.

    Attributes
    protected
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def ineligibleResponseCode(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    Returns DoNotCacheResponse if this is not an "understood" response code, according to cache.isUnderstoodStatusCode.

    Returns DoNotCacheResponse if this is not an "understood" response code, according to cache.isUnderstoodStatusCode.

    Attributes
    protected
  23. def isCacheable(request: CacheRequest, response: OriginResponse): ResponseCachingAction

    Returns an action indicating whether the request should be cached or not.

  24. def isCacheableExtension(extension: CacheDirectiveExtension): Boolean

    Returns true if this is an extension that allows it to be cached.

    Returns true if this is an extension that allows it to be cached.

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

    Attributes
    protected
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def notCacheableMethod(request: CacheRequest, response: OriginResponse): Option[DoNotCacheResponse]

    Returns DoNotCacheResponse if request method is not cacheable, according to cache.isCacheableMethod.

    Returns DoNotCacheResponse if request method is not cacheable, according to cache.isCacheableMethod.

    Attributes
    protected
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def responseIsCacheable(request: CacheRequest, response: OriginResponse): ResponseCachingAction

    Returns true if the response is cacheable.

    Returns true if the response is cacheable.

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

    Attributes
    protected
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped