final case class Expires(expirationDate: HttpDate) extends Parsed with Product with Serializable
A Response header that _gives the date/time after which the response is considered stale_.
The HTTP RFCs indicate that Expires should be in the range of now to 1 year in the future. However, it is a usual practice to set it to the past of far in the future Thus any instant is in practice allowed
- expirationDate
the date of expiration. The RFC has a warning, that using large values can cause problems due to integer or clock overflows.
- Source
- Expires.scala
- Alphabetic
- By Inheritance
- Expires
- Serializable
- Serializable
- Parsed
- Header
- Product
- Equals
- Renderable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
equals(that: Any): Boolean
- Definition Classes
- Header → Equals → AnyRef → Any
- val expirationDate: HttpDate
-
final
def
hashCode(): Int
- Definition Classes
- Header → AnyRef → Any
-
def
is(key: HeaderKey): Boolean
- Definition Classes
- Header
-
def
isNameValid: Boolean
True if name is a valid field-name per RFC7230.
-
def
isNot(key: HeaderKey): Boolean
- Definition Classes
- Header
- val key: Expires.type
- def name: CaseInsensitiveString
- def parsed: Expires.this.type
-
final
def
render(writer: Writer): writer.type
Base method for rendering this object efficiently
Base method for rendering this object efficiently
- Definition Classes
- Header → Renderable
-
def
renderString: String
Generates a String rendering of this object
Generates a String rendering of this object
- Definition Classes
- Renderable
- def renderValue(writer: Writer): writer.type
-
def
renderedLength: Long
Length of the rendered header, including name and final '\r\n'
Length of the rendered header, including name and final '\r\n'
- Definition Classes
- Header
-
def
toRaw: Raw
- Definition Classes
- Header
-
def
toString(): String
- Definition Classes
- Header → Renderable → AnyRef → Any
- val value: String