Expires

scamper.http.headers.Expires
final class Expires(response: HttpResponse) extends AnyVal

Adds standardized access to Expires header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def expires: Instant

Gets Expires header value.

Gets Expires header value.

Attributes

Throws
HeaderNotFound

if Expires is not present

def expiresOption: Option[Instant]

Gets Expires header value if present.

Gets Expires header value if present.

Attributes

Creates new response with Expires header removed.

Creates new response with Expires header removed.

Attributes

def hasExpires: Boolean

Tests for Expires header.

Tests for Expires header.

Attributes

def setExpires(value: Instant): HttpResponse

Creates new response with Expires header set to supplied value.

Creates new response with Expires header set to supplied value.

Attributes