Expires

org.http4s.headers.Expires
See theExpires companion object
final case class Expires(expirationDate: HttpDate)

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

RFC-7234 Section 5.3

Value parameters

expirationDate

the date of expiration. The RFC has a warning, that using large values can cause problems due to integer or clock overflows.

Attributes

Companion
object
Source
Expires.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product