implicit final class Expires extends AnyVal
Provides standardized access to Expires header.
- Alphabetic
- By Inheritance
- Expires
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Expires(response: HttpResponse)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
expires: Instant
Gets Expires header value.
Gets Expires header value.
- Exceptions thrown
HeaderNotFound
if Expires is not present
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getExpires: Option[Instant]
Gets Expires header value if present.
-
def
hasExpires: Boolean
Tests for Expires header.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
removeExpires: HttpResponse
Creates new response removing Expires header.
-
def
setExpires(value: Instant): HttpResponse
Creates new response setting Expires header to supplied value.
-
def
toString(): String
- Definition Classes
- Any
Provided herein is API documentation for Scamper, the HTTP library for Scala.