class ResponseServingCalculator extends AnyRef
This class determines whether a cache can serve a stored response from request. It is "Constructing Responses from Caches" section in RFC 7234.
If there are multiple matches, the most recent response must be sent for evaluation, as determined by the Date header field.
https://tools.ietf.org/html/rfc7234#section-4
- Alphabetic
- By Inheritance
- ResponseServingCalculator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def allowStaleIfError(age: Seconds)(implicit request: CacheRequest, response: StoredResponse): Validate
- Attributes
- protected
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canServeStaleAndRevalidate(age: Seconds)(implicit request: CacheRequest, response: StoredResponse): Option[ServeStaleAndValidate]
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def containsPragmaNoCache(implicit request: CacheRequest): Boolean
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def headersFound(noCacheHeaders: Seq[HeaderName], response: StoredResponse): Boolean
- Attributes
- protected
- def isCachedResponseFresh(currentAge: Seconds)(implicit request: CacheRequest, response: StoredResponse): Option[ServeFresh]
Returns a ServeFresh if the cached response is fresh enough.
Returns a ServeFresh if the cached response is fresh enough.
Clients can send the max-age or min-fresh cache directives in a request to constrain or relax freshness calculations for the corresponding response (Section 5.2.1).
https://tools.ietf.org/html/rfc7234#section-4.2
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isStaleResponseAllowed(currentAge: Seconds)(implicit request: CacheRequest, response: StoredResponse): Option[ServeStale]
Determines if a stale response without validation is appropriate.
Determines if a stale response without validation is appropriate.
https://tools.ietf.org/html/rfc7234#section-4.2.4
- Attributes
- protected
- def isStaleResponseExplicitlyProhibited(implicit request: CacheRequest, response: StoredResponse): Option[ValidateOrTimeout]
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noCacheFound(implicit request: CacheRequest, response: StoredResponse): Option[Validate]
- Attributes
- protected
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def serveResponse(request: CacheRequest, response: StoredResponse, currentAge: Seconds): ResponseServeAction
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)